On tab select, the URL is updated.

This commit is contained in:
Brian Granger 2012-02-09 16:39:29 -08:00
parent 35ffb5500a
commit dbefa745fd

View File

@ -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) {