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