##// END OF EJS Templates
Further work updating JS URL scheme to use data-base-project-url.
Brian E. Granger -
Show More
@@ -96,7 +96,6 b' var IPython = (function (IPython) {'
96 this.iopub_channel = new this.WebSocket(ws_url + "/iopub");
96 this.iopub_channel = new this.WebSocket(ws_url + "/iopub");
97 send_cookie = function(){
97 send_cookie = function(){
98 this.send(document.cookie);
98 this.send(document.cookie);
99 console.log(this);
100 }
99 }
101 this.shell_channel.onopen = send_cookie;
100 this.shell_channel.onopen = send_cookie;
102 this.iopub_channel.onopen = send_cookie;
101 this.iopub_channel.onopen = send_cookie;
@@ -21,7 +21,7 b' $(document).ready(function () {'
21 $('div#content_toolbar').addClass('ui-widget ui-helper-clearfix');
21 $('div#content_toolbar').addClass('ui-widget ui-helper-clearfix');
22
22
23 $('#new_notebook').button().click(function (e) {
23 $('#new_notebook').button().click(function (e) {
24 window.open('/new');
24 window.open($('body').data('baseProjectUrl')+'new');
25 });
25 });
26
26
27 $('div#left_panel').addClass('box-flex');
27 $('div#left_panel').addClass('box-flex');
@@ -989,8 +989,10 b' var IPython = (function (IPython) {'
989 }, 50);
989 }, 50);
990 };
990 };
991
991
992
992 IPython.Notebook = Notebook;
993 IPython.Notebook = Notebook;
993
994
995
994 return IPython;
996 return IPython;
995
997
996 }(IPython));
998 }(IPython));
@@ -106,15 +106,15 b' var IPython = (function (IPython) {'
106 PanelSection.prototype.bind_events.apply(this);
106 PanelSection.prototype.bind_events.apply(this);
107 var that = this;
107 var that = this;
108 this.content.find('#new_notebook').click(function () {
108 this.content.find('#new_notebook').click(function () {
109 window.open('/new');
109 window.open($('body').data('baseProjectUrl')+'new');
110 });
110 });
111 this.content.find('#open_notebook').click(function () {
111 this.content.find('#open_notebook').click(function () {
112 window.open('/');
112 window.open($('body').data('baseProjectUrl'));
113 });
113 });
114 this.content.find('#download_notebook').click(function () {
114 this.content.find('#download_notebook').click(function () {
115 var format = that.content.find('#download_format').val();
115 var format = that.content.find('#download_format').val();
116 var notebook_id = IPython.save_widget.get_notebook_id();
116 var notebook_id = IPython.save_widget.get_notebook_id();
117 var url = '/notebooks/' + notebook_id + '?format=' + format;
117 var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id + '?format=' + format;
118 window.open(url,'_newtab');
118 window.open(url,'_newtab');
119 });
119 });
120 };
120 };
@@ -273,7 +273,6 b''
273 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
273 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
274 <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
274 <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
275
275
276
277 </body>
276 </body>
278
277
279 </html>
278 </html>
General Comments 0
You need to be logged in to leave comments. Login now