From 0734e2c95088d6753a8708cbe78fa58fe9074e04 Mon Sep 17 00:00:00 2001 From: Stephen Ward Date: Fri, 14 Dec 2018 22:47:34 -0500 Subject: [PATCH] remove multiple download links for the .ipynb click --- notebook/static/notebook/js/menubar.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/notebook/static/notebook/js/menubar.js b/notebook/static/notebook/js/menubar.js index 0e45c4707..83ee61de6 100644 --- a/notebook/static/notebook/js/menubar.js +++ b/notebook/static/notebook/js/menubar.js @@ -174,20 +174,6 @@ define([ that.notebook.save_notebook_as(); return false; }); - this.element.find('#download_ipynb').click(function () { - var base_url = that.notebook.base_url; - var notebook_path = utils.encode_uri_components(that.notebook.notebook_path); - var url = utils.url_path_join( - base_url, 'files', notebook_path - ) + '?download=1'; - if (that.notebook.dirty && that.notebook.writable) { - that.notebook.save_notebook().then(function() { - that._new_window(url); - }); - } else { - that._new_window(url); - } - }); this.element.find('#print_preview').click(function () { that._nbconvert('html', false);