##// END OF EJS Templates
Various minor fixes from review
Thomas Kluyver -
Show More
@@ -141,8 +141,7 b' class IPythonHandler(AuthenticatedHandler):'
141 141 def contents_js_source(self):
142 142 self.log.debug("Using contents: %s", self.settings.get('contents_js_source',
143 143 'services/contents'))
144 return self.settings.get('contents_js_source',
145 'services/contents')
144 return self.settings.get('contents_js_source', 'services/contents')
146 145
147 146 #---------------------------------------------------------------
148 147 # Manager objects
@@ -1908,7 +1908,7 b' define(['
1908 1908 var content = $.extend(this.toJSON(), {
1909 1909 nbformat : this.nbformat,
1910 1910 nbformat_minor : this.nbformat_minor
1911 })
1911 });
1912 1912 // Create a JSON model to be sent to the server.
1913 1913 var model = {
1914 1914 name : this.notebook_name,
@@ -59,7 +59,7 b' require(['
59 59
60 60 login_widget = new loginwidget.LoginWidget('#login_widget', common_options);
61 61
62 $('#new_notebook').button().click(function (e) {
62 $('#new_notebook').click(function (e) {
63 63 contents.new_notebook(common_options.notebook_path,
64 64 {
65 65 success: function (data, status, xhr) {
@@ -321,9 +321,9 b' define(['
321 321 // We use the filename from the parent list_item element's
322 322 // data because the outer scope's values change as we iterate through the loop.
323 323 var parent_item = that.parents('div.list_item');
324 var nbname = parent_item.data('nbname');
324 var name = parent_item.data('nbname');
325 325 var path = parent_item.data('path');
326 var message = 'Are you sure you want to permanently delete the notebook: ' + nbname + '?';
326 var message = 'Are you sure you want to permanently delete the file: ' + nbname + '?';
327 327 dialog.modal({
328 328 title : "Delete file",
329 329 body : message,
@@ -331,9 +331,9 b' define(['
331 331 Delete : {
332 332 class: "btn-danger",
333 333 click: function() {
334 notebooklist.contents.delete_file(nbname, path, {
334 notebooklist.contents.delete_file(name, path, {
335 335 success: function() {
336 notebooklist.notebook_deleted(path, nbname);
336 notebooklist.notebook_deleted(path, name);
337 337 }
338 338 });
339 339 }
General Comments 0
You need to be logged in to leave comments. Login now