Skip to content

Commit cc9ec35

Browse files
authored
Merge pull request #2787 from takluyver/no-double-upload
Prevent uploading file twice
2 parents 4d21a1b + e3df236 commit cc9ec35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

notebook/static/tree/js/notebooklist.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ define([
11761176
var add_uploading_button = function (f, item) {
11771177
// change buttons, add a progress bar
11781178
var uploading_button = item.find('.upload_button').text("Uploading");
1179+
uploading_button.off('click'); // Prevent double upload
11791180
var progress_bar = $('<span/>')
11801181
.addClass('progress-bar')
11811182
.css('top', '0')

0 commit comments

Comments
 (0)