Skip to content

Commit e3df236

Browse files
committed
Prevent uploading file twice
Closes gh-2773
1 parent 4d21a1b commit e3df236

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)