From bcc90814441306d236b995be1258356e32a75c41 Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Fri, 10 Aug 2012 10:27:13 +0200 Subject: [PATCH] remove update_url occurences --- IPython/frontend/html/notebook/static/js/notebookmain.js | 1 - IPython/frontend/html/notebook/static/js/savewidget.js | 9 --------- 2 files changed, 10 deletions(-) diff --git a/IPython/frontend/html/notebook/static/js/notebookmain.js b/IPython/frontend/html/notebook/static/js/notebookmain.js index 27a1f218c..7975900c6 100644 --- a/IPython/frontend/html/notebook/static/js/notebookmain.js +++ b/IPython/frontend/html/notebook/static/js/notebookmain.js @@ -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')); diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 10fdfb4ce..7b3b058c0 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -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); }