##// END OF EJS Templates
fix notebook deletion....
Matthias BUSSONNIER -
Show More
@@ -230,6 +230,7 var IPython = (function (IPython) {
230
230
231 NotebookList.prototype.add_delete_button = function (item) {
231 NotebookList.prototype.add_delete_button = function (item) {
232 var new_buttons = $('<span/>').addClass('item_buttons');
232 var new_buttons = $('<span/>').addClass('item_buttons');
233 var notebooklist = this;
233 var delete_button = $('<button>Delete</button>').button().
234 var delete_button = $('<button>Delete</button>').button().
234 click(function (e) {
235 click(function (e) {
235 // $(this) is the button that was clicked.
236 // $(this) is the button that was clicked.
@@ -257,7 +258,7 var IPython = (function (IPython) {
257 parent_item.remove();
258 parent_item.remove();
258 }
259 }
259 };
260 };
260 var url = that.baseProjectUrl() + 'notebooks/' + notebook_id;
261 var url = notebooklist.baseProjectUrl() + 'notebooks/' + notebook_id;
261 $.ajax(url, settings);
262 $.ajax(url, settings);
262 $(this).dialog('close');
263 $(this).dialog('close');
263 },
264 },
General Comments 0
You need to be logged in to leave comments. Login now