Show More
@@ -96,7 +96,6 b' var IPython = (function (IPython) {' | |||
|
96 | 96 | this.iopub_channel = new this.WebSocket(ws_url + "/iopub"); |
|
97 | 97 | send_cookie = function(){ |
|
98 | 98 | this.send(document.cookie); |
|
99 | console.log(this); | |
|
100 | 99 | } |
|
101 | 100 | this.shell_channel.onopen = send_cookie; |
|
102 | 101 | this.iopub_channel.onopen = send_cookie; |
@@ -21,7 +21,7 b' $(document).ready(function () {' | |||
|
21 | 21 | $('div#content_toolbar').addClass('ui-widget ui-helper-clearfix'); |
|
22 | 22 | |
|
23 | 23 | $('#new_notebook').button().click(function (e) { |
|
24 |
window.open( |
|
|
24 | window.open($('body').data('baseProjectUrl')+'new'); | |
|
25 | 25 | }); |
|
26 | 26 | |
|
27 | 27 | $('div#left_panel').addClass('box-flex'); |
@@ -989,8 +989,10 b' var IPython = (function (IPython) {' | |||
|
989 | 989 | }, 50); |
|
990 | 990 | }; |
|
991 | 991 | |
|
992 | ||
|
992 | 993 | IPython.Notebook = Notebook; |
|
993 | 994 | |
|
995 | ||
|
994 | 996 | return IPython; |
|
995 | 997 | |
|
996 | 998 | }(IPython)); |
@@ -106,15 +106,15 b' var IPython = (function (IPython) {' | |||
|
106 | 106 | PanelSection.prototype.bind_events.apply(this); |
|
107 | 107 | var that = this; |
|
108 | 108 | this.content.find('#new_notebook').click(function () { |
|
109 |
window.open( |
|
|
109 | window.open($('body').data('baseProjectUrl')+'new'); | |
|
110 | 110 | }); |
|
111 | 111 | this.content.find('#open_notebook').click(function () { |
|
112 |
window.open( |
|
|
112 | window.open($('body').data('baseProjectUrl')); | |
|
113 | 113 | }); |
|
114 | 114 | this.content.find('#download_notebook').click(function () { |
|
115 | 115 | var format = that.content.find('#download_format').val(); |
|
116 | 116 | var notebook_id = IPython.save_widget.get_notebook_id(); |
|
117 |
var url = |
|
|
117 | var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id + '?format=' + format; | |
|
118 | 118 | window.open(url,'_newtab'); |
|
119 | 119 | }); |
|
120 | 120 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now