diff --git a/notebook/static/tree/js/notebooklist.js b/notebook/static/tree/js/notebooklist.js index 4cf108d01..51ea2e3e8 100644 --- a/notebook/static/tree/js/notebooklist.js +++ b/notebook/static/tree/js/notebooklist.js @@ -656,7 +656,8 @@ define([ title : "Rename "+ item_type, body : dialog_body, buttons : { - OK : { + Cancel: {}, + Rename : { class: "btn-primary", click: function() { that.contents.rename(item_path, utils.url_path_join(that.notebook_path, input.val())).then(function() { @@ -676,8 +677,7 @@ define([ console.warn('Error durring renaming :', e); }); } - }, - Cancel : {} + } }, open : function () { // Upon ENTER, click the OK button. @@ -709,6 +709,7 @@ define([ title : "Delete", body : message, buttons : { + Cancel: {}, Delete : { class: "btn-danger", click: function() { @@ -736,8 +737,7 @@ define([ }); }); } - }, - Cancel : {} + } } }); }; @@ -754,6 +754,7 @@ define([ title : "Duplicate", body : message, buttons : { + Cancel: {}, Duplicate : { class: "btn-primary", click: function() { @@ -776,8 +777,7 @@ define([ }); }); } - }, - Cancel : {} + } } }); }; @@ -875,14 +875,14 @@ define([ title : "Replace file", body : 'There is already a file named ' + filename + ', do you want to replace it?', buttons : { + Cancel : { + click: function() { item.remove(); } + }, Overwrite : { class: "btn-danger", click: function () { that.contents.save(path, model).then(on_success); } - }, - Cancel : { - click: function() { item.remove(); } } } });