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