##// END OF EJS Templates
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
David Neto -
Show More
@@ -77,7 +77,6 b' define(['
77 notebook: options.notebook,
77 notebook: options.notebook,
78 keyboard_manager: this.keyboard_manager,
78 keyboard_manager: this.keyboard_manager,
79 buttons : {
79 buttons : {
80 "Cancel": {},
81 "OK": {
80 "OK": {
82 class: "btn-primary",
81 class: "btn-primary",
83 click: function () {
82 click: function () {
@@ -92,7 +91,8 b' define(['
92 } else {
91 } else {
93 that.notebook.rename(new_name);
92 that.notebook.rename(new_name);
94 }
93 }
95 }}
94 }},
95 "Cancel": {}
96 },
96 },
97 open : function (event, ui) {
97 open : function (event, ui) {
98 var that = $(this);
98 var that = $(this);
General Comments 0
You need to be logged in to leave comments. Login now