##// END OF EJS Templates
Merge pull request #2683 from yoavram/patch-1...
Bussonnier Matthias -
r8874:7528fbd7 merge
parent child Browse files
Show More
@@ -58,13 +58,13 b' var IPython = (function (IPython) {'
58 var notebook_id = IPython.notebook.get_notebook_id();
58 var notebook_id = IPython.notebook.get_notebook_id();
59 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
59 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
60 notebook_id + '?format=json';
60 notebook_id + '?format=json';
61 window.open(url,'_newtab');
61 window.location.assign(url);
62 });
62 });
63 this.element.find('#download_py').click(function () {
63 this.element.find('#download_py').click(function () {
64 var notebook_id = IPython.notebook.get_notebook_id();
64 var notebook_id = IPython.notebook.get_notebook_id();
65 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
65 var url = $('body').data('baseProjectUrl') + 'notebooks/' +
66 notebook_id + '?format=py';
66 notebook_id + '?format=py';
67 window.open(url,'_newtab');
67 window.location.assign(url);
68 });
68 });
69 this.element.find('button#print_notebook').click(function () {
69 this.element.find('button#print_notebook').click(function () {
70 IPython.print_widget.print_notebook();
70 IPython.print_widget.print_notebook();
General Comments 0
You need to be logged in to leave comments. Login now