diff --git a/notebook/static/edit/js/savewidget.js b/notebook/static/edit/js/savewidget.js index 7d6d38bc7..31d7cc65d 100644 --- a/notebook/static/edit/js/savewidget.js +++ b/notebook/static/edit/js/savewidget.js @@ -72,7 +72,9 @@ define([ var d = dialog.modal({ title: "Rename File", body: dialog_body, + default_button: "Cancel", buttons : { + "Cancel": {}, "OK": { class: "btn-primary", click: function () { @@ -89,9 +91,8 @@ define([ ); return false; } - }, - "Cancel": {} - }, + } + }, open : function () { // Upon ENTER, click the OK button. d.find('input[type="text"]').keydown(function (event) {