Show More
@@ -2140,8 +2140,7 define([ | |||||
2140 | Notebook.prototype.rename_error = function (xhr, status, error) { |
|
2140 | Notebook.prototype.rename_error = function (xhr, status, error) { | |
2141 | var that = this; |
|
2141 | var that = this; | |
2142 | var dialog_body = $('<div/>').append( |
|
2142 | var dialog_body = $('<div/>').append( | |
2143 | $("<p/>").addClass("rename-message") |
|
2143 | $("<p/>").text('This notebook name already exists.') | |
2144 | .text('This notebook name already exists.') |
|
|||
2145 | ); |
|
2144 | ); | |
2146 | this.events.trigger('notebook_rename_failed.Notebook', [xhr, status, error]); |
|
2145 | this.events.trigger('notebook_rename_failed.Notebook', [xhr, status, error]); | |
2147 | dialog.modal({ |
|
2146 | dialog.modal({ |
@@ -7,12 +7,11 define([ | |||||
7 | 'base/js/utils', |
|
7 | 'base/js/utils', | |
8 | 'base/js/dialog', |
|
8 | 'base/js/dialog', | |
9 | 'base/js/keyboard', |
|
9 | 'base/js/keyboard', | |
10 | 'dateformat', |
|
|||
11 | ], function(IPython, $, utils, dialog, keyboard) { |
|
10 | ], function(IPython, $, utils, dialog, keyboard) { | |
12 | "use strict"; |
|
11 | "use strict"; | |
13 |
|
12 | |||
14 | var SaveWidget = function (selector, options) { |
|
13 | var SaveWidget = function (selector, options) { | |
15 |
// TODO: Remove circula |
|
14 | // TODO: Remove circular ref. | |
16 | this.notebook = undefined; |
|
15 | this.notebook = undefined; | |
17 | this.selector = selector; |
|
16 | this.selector = selector; | |
18 | this.events = options.events; |
|
17 | this.events = options.events; |
General Comments 0
You need to be logged in to leave comments.
Login now