Show More
@@ -1786,23 +1786,21 b' var IPython = (function (IPython) {' | |||||
1786 | cache : false, |
|
1786 | cache : false, | |
1787 | type : "POST", |
|
1787 | type : "POST", | |
1788 | dataType : "json", |
|
1788 | dataType : "json", | |
|
1789 | data : JSON.stringify({copy_from : this.notebook_name}), | |||
1789 | async : false, |
|
1790 | async : false, | |
1790 | success : function (data, status, xhr) { |
|
1791 | success : function (data, status, xhr) { | |
1791 | var notebook_name = data.name; |
|
|||
1792 | window.open(utils.url_path_join( |
|
1792 | window.open(utils.url_path_join( | |
1793 | base_project_url, |
|
1793 | base_project_url, | |
1794 | 'notebooks', |
|
1794 | 'notebooks', | |
1795 | path, |
|
1795 | data.path, | |
1796 |
|
|
1796 | data.name | |
1797 | ), '_blank'); |
|
1797 | ), '_blank'); | |
1798 | } |
|
1798 | } | |
1799 | }; |
|
1799 | }; | |
1800 | var url = utils.url_path_join( |
|
1800 | var url = utils.url_path_join( | |
1801 | base_project_url, |
|
1801 | base_project_url, | |
1802 | 'api/notebooks', |
|
1802 | 'api/notebooks', | |
1803 |
path |
|
1803 | path | |
1804 | this.notebook_name, |
|
|||
1805 | 'copy' |
|
|||
1806 | ); |
|
1804 | ); | |
1807 | $.ajax(url,settings); |
|
1805 | $.ajax(url,settings); | |
1808 | }; |
|
1806 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now