mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
update last_modified on rename
some storage backends may update the last_modified date on rename
This commit is contained in:
parent
4b0553ae45
commit
8454ae087b
@ -2084,6 +2084,7 @@ define(function (require) {
|
|||||||
function (json) {
|
function (json) {
|
||||||
that.notebook_name = json.name;
|
that.notebook_name = json.name;
|
||||||
that.notebook_path = json.path;
|
that.notebook_path = json.path;
|
||||||
|
that.last_modified = new Date(json.last_modified);
|
||||||
that.session.rename_notebook(json.path);
|
that.session.rename_notebook(json.path);
|
||||||
that.events.trigger('notebook_renamed.Notebook', json);
|
that.events.trigger('notebook_renamed.Notebook', json);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user