Skip to content

Commit f4183bb

Browse files
authored
Merge pull request #4275 from steaward/issue-4270
remove multiple download links for the #download_ipynb click
2 parents eea02c2 + 0734e2c commit f4183bb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

notebook/static/notebook/js/menubar.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -174,20 +174,6 @@ define([
174174
that.notebook.save_notebook_as();
175175
return false;
176176
});
177-
this.element.find('#download_ipynb').click(function () {
178-
var base_url = that.notebook.base_url;
179-
var notebook_path = utils.encode_uri_components(that.notebook.notebook_path);
180-
var url = utils.url_path_join(
181-
base_url, 'files', notebook_path
182-
) + '?download=1';
183-
if (that.notebook.dirty && that.notebook.writable) {
184-
that.notebook.save_notebook().then(function() {
185-
that._new_window(url);
186-
});
187-
} else {
188-
that._new_window(url);
189-
}
190-
});
191177

192178
this.element.find('#print_preview').click(function () {
193179
that._nbconvert('html', false);

0 commit comments

Comments
 (0)