mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
remove update_url occurences
This commit is contained in:
parent
b0cf1f43ed
commit
bcc9081444
@ -60,7 +60,6 @@ $(document).ready(function () {
|
||||
IPython.layout_manager.do_resize();
|
||||
$([IPython.events]).on('notebook_loaded.Notebook', function () {
|
||||
IPython.layout_manager.do_resize();
|
||||
IPython.save_widget.update_url();
|
||||
})
|
||||
IPython.notebook.load_notebook($('body').data('notebookId'));
|
||||
|
||||
|
@ -120,15 +120,6 @@ var IPython = (function (IPython) {
|
||||
};
|
||||
|
||||
|
||||
SaveWidget.prototype.update_url = function () {
|
||||
var notebook_id = IPython.notebook.get_notebook_id();
|
||||
if (notebook_id !== null) {
|
||||
var new_url = $('body').data('baseProjectUrl') + notebook_id;
|
||||
window.history.replaceState({}, '', new_url);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
SaveWidget.prototype.set_save_status = function (msg) {
|
||||
this.element.find('span#save_status').html(msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user