diff --git a/IPython/frontend/html/notebook/handlers.py b/IPython/frontend/html/notebook/handlers.py index 1245374..49ff15f 100644 --- a/IPython/frontend/html/notebook/handlers.py +++ b/IPython/frontend/html/notebook/handlers.py @@ -57,7 +57,8 @@ class NBBrowserHandler(AuthenticatedHandler): def get(self): nbm = self.application.notebook_manager project = nbm.notebook_dir - self.render('nbbrowser.html', project=project) + self.render('nbbrowser.html', project=project, + base_project_url=u'/', base_kernel_url=u'/') class LoginHandler(AuthenticatedHandler): def get(self): @@ -75,7 +76,8 @@ class NewHandler(AuthenticatedHandler): @web.authenticated def get(self): notebook_id = self.application.notebook_manager.new_notebook() - self.render('notebook.html', notebook_id=notebook_id) + self.render('notebook.html', notebook_id=notebook_id, + base_project_url=u'/', base_kernel_url=u'/') class NamedNotebookHandler(AuthenticatedHandler): @@ -84,7 +86,8 @@ class NamedNotebookHandler(AuthenticatedHandler): nbm = self.application.notebook_manager if not nbm.notebook_exists(notebook_id): raise web.HTTPError(404, u'Notebook does not exist: %s' % notebook_id) - self.render('notebook.html', notebook_id=notebook_id) + self.render('notebook.html', notebook_id=notebook_id, + base_project_url=u'/', base_kernel_url=u'/') #----------------------------------------------------------------------------- diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 18a16cd..f3a7216 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -87,7 +87,7 @@ var IPython = (function (IPython) { SaveWidget.prototype.get_notebook_id = function () { - return this.element.find('span#notebook_id').text() + return $('body').data('notebookId'); }; diff --git a/IPython/frontend/html/notebook/templates/nbbrowser.html b/IPython/frontend/html/notebook/templates/nbbrowser.html index f95afa1..68ec273 100644 --- a/IPython/frontend/html/notebook/templates/nbbrowser.html +++ b/IPython/frontend/html/notebook/templates/nbbrowser.html @@ -17,7 +17,7 @@ - +