##// END OF EJS Templates
for downloads, replaced window.open with window.location.assign...
Yoav Ram -
Show More
@@ -58,13 +58,13 b' var IPython = (function (IPython) {'
58 58 var notebook_id = IPython.notebook.get_notebook_id();
59 59 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
60 60 notebook_id + '?format=json';
61 window.open(url,'_newtab');
61 window.location.assign(url);
62 62 });
63 63 this.element.find('#download_py').click(function () {
64 64 var notebook_id = IPython.notebook.get_notebook_id();
65 65 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
66 66 notebook_id + '?format=py';
67 window.open(url,'_newtab');
67 window.location.assign(url);
68 68 });
69 69 this.element.find('button#print_notebook').click(function () {
70 70 IPython.print_widget.print_notebook();
General Comments 0
You need to be logged in to leave comments. Login now