diff --git a/notebook/static/base/js/dialog.js b/notebook/static/base/js/dialog.js index 769817410..e90b537dd 100644 --- a/notebook/static/base/js/dialog.js +++ b/notebook/static/base/js/dialog.js @@ -185,7 +185,8 @@ define(function(require) { title: "Edit " + options.name + " Metadata", body: dialogform, buttons: { - OK: { class : "btn-primary", + Cancel: {}, + Edit: { class : "btn-primary", click: function() { /** * validate json and set it @@ -200,8 +201,7 @@ define(function(require) { } options.callback(new_md); } - }, - Cancel: {} + } }, notebook: options.notebook, keyboard_manager: options.keyboard_manager,