From dfd38dd22d8c2f580d4589914f65381176db03f8 2014-11-17 18:09:53 From: David Neto Date: 2014-11-17 18:09:53 Subject: [PATCH] Change the order of Cancel and OK button in the renaming function so it matches the user experience for the same dialog boxes used in the main dashboard --- diff --git a/IPython/html/static/notebook/js/savewidget.js b/IPython/html/static/notebook/js/savewidget.js index f2cfb5c..8c7f333 100644 --- a/IPython/html/static/notebook/js/savewidget.js +++ b/IPython/html/static/notebook/js/savewidget.js @@ -77,7 +77,6 @@ define([ notebook: options.notebook, keyboard_manager: this.keyboard_manager, buttons : { - "Cancel": {}, "OK": { class: "btn-primary", click: function () { @@ -92,7 +91,8 @@ define([ } else { that.notebook.rename(new_name); } - }} + }}, + "Cancel": {} }, open : function (event, ui) { var that = $(this);