From b9a328a1460e7c20696b74d2923778976c126065 2012-03-08 19:27:31 From: Brian Granger Date: 2012-03-08 19:27:31 Subject: [PATCH] On tab select, the URL is updated. --- diff --git a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js index 1762faa..1f6a69f 100644 --- a/IPython/frontend/html/notebook/static/js/projectdashboardmain.js +++ b/IPython/frontend/html/notebook/static/js/projectdashboardmain.js @@ -15,6 +15,10 @@ $(document).ready(function () { IPython.page = new IPython.Page(); $('div#tabs').tabs(); + $('div#tabs').on('tabsselect', function (event, ui) { + var new_url = $('body').data('baseProjectUrl') + '#' + ui.panel.id; + window.history.replaceState({}, '', new_url); + }); $('div#main_app').addClass('border-box-sizing ui-widget'); $('div#notebooks_toolbar').addClass('ui-widget ui-helper-clearfix'); $('#new_notebook').button().click(function (e) {