mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
On tab select, the URL is updated.
This commit is contained in:
parent
35ffb5500a
commit
dbefa745fd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user