mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Further work updating JS URL scheme to use data-base-project-url.
This commit is contained in:
parent
cc3516be01
commit
1f699c8c23
@ -96,7 +96,6 @@ var IPython = (function (IPython) {
|
||||
this.iopub_channel = new this.WebSocket(ws_url + "/iopub");
|
||||
send_cookie = function(){
|
||||
this.send(document.cookie);
|
||||
console.log(this);
|
||||
}
|
||||
this.shell_channel.onopen = send_cookie;
|
||||
this.iopub_channel.onopen = send_cookie;
|
||||
|
@ -21,7 +21,7 @@ $(document).ready(function () {
|
||||
$('div#content_toolbar').addClass('ui-widget ui-helper-clearfix');
|
||||
|
||||
$('#new_notebook').button().click(function (e) {
|
||||
window.open('/new');
|
||||
window.open($('body').data('baseProjectUrl')+'new');
|
||||
});
|
||||
|
||||
$('div#left_panel').addClass('box-flex');
|
||||
|
@ -989,8 +989,10 @@ var IPython = (function (IPython) {
|
||||
}, 50);
|
||||
};
|
||||
|
||||
|
||||
IPython.Notebook = Notebook;
|
||||
|
||||
|
||||
return IPython;
|
||||
|
||||
}(IPython));
|
||||
|
@ -273,7 +273,6 @@
|
||||
<script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user