Further work updating JS URL scheme to use data-base-project-url.

This commit is contained in:
Brian E. Granger 2011-09-06 21:14:31 -07:00 committed by MinRK
parent cc3516be01
commit 1f699c8c23
4 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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');

View File

@ -989,8 +989,10 @@ var IPython = (function (IPython) {
}, 50);
};
IPython.Notebook = Notebook;
return IPython;
}(IPython));

View File

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