##// END OF EJS Templates
fix tab hash / url behavior...
MinRK -
Show More
@@ -16,7 +16,7 b' $(document).ready(function () {'
16 $('#new_notebook').click(function (e) {
16 $('#new_notebook').click(function (e) {
17 window.open($('body').data('baseProjectUrl')+'new');
17 window.open($('body').data('baseProjectUrl')+'new');
18 });
18 });
19
19
20 IPython.read_only = $('body').data('readOnly') === 'True';
20 IPython.read_only = $('body').data('readOnly') === 'True';
21 IPython.notebook_list = new IPython.NotebookList('#notebook_list');
21 IPython.notebook_list = new IPython.NotebookList('#notebook_list');
22 IPython.cluster_list = new IPython.ClusterList('#cluster_list');
22 IPython.cluster_list = new IPython.ClusterList('#cluster_list');
@@ -69,6 +69,17 b' $(document).ready(function () {'
69 $("#alternate_upload").change(function (event){
69 $("#alternate_upload").change(function (event){
70 IPython.notebook_list.handelFilesUpload(event,'form');
70 IPython.notebook_list.handelFilesUpload(event,'form');
71 });
71 });
72
73 // set hash on tab click
74 $("#tabs").find("a").click(function() {
75 window.location.hash = $(this).attr("href");
76 })
77
78 // load tab if url hash
79 if (window.location.hash) {
80 $("#tabs").find("a[href=" + window.location.hash + "]").click();
81 }
82
72
83
73 });
84 });
74
85
General Comments 0
You need to be logged in to leave comments. Login now