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