Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e5c5e2e2d73ba1dae64e56d1090814ecd7615eb4 1 parent 4ecb79d
@ellisonbg ellisonbg authored committed
View
1  IPython/frontend/html/notebook/static/js/kernel.js
@@ -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
2  IPython/frontend/html/notebook/static/js/nbbrowser_main.js
@@ -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
2  IPython/frontend/html/notebook/static/js/notebook.js
@@ -989,8 +989,10 @@ var IPython = (function (IPython) {
}, 50);
};
+
IPython.Notebook = Notebook;
+
return IPython;
}(IPython));
View
6 IPython/frontend/html/notebook/static/js/panelsection.js
@@ -106,15 +106,15 @@ var IPython = (function (IPython) {
PanelSection.prototype.bind_events.apply(this);
var that = this;
this.content.find('#new_notebook').click(function () {
- window.open('/new');
+ window.open($('body').data('baseProjectUrl')+'new');
});
this.content.find('#open_notebook').click(function () {
- window.open('/');
+ window.open($('body').data('baseProjectUrl'));
});
this.content.find('#download_notebook').click(function () {
var format = that.content.find('#download_format').val();
var notebook_id = IPython.save_widget.get_notebook_id();
- var url = '/notebooks/' + notebook_id + '?format=' + format;
+ var url = $('body').data('baseProjectUrl') + 'notebooks/' + notebook_id + '?format=' + format;
window.open(url,'_newtab');
});
};
View
1  IPython/frontend/html/notebook/templates/notebook.html
@@ -273,7 +273,6 @@ <h3 class="section_header">Help</h3>
<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>
Please sign in to comment.
Something went wrong with that request. Please try again.