Skip to content

Commit bf9a673

Browse files
committed
cancel upload file finished
1 parent af65201 commit bf9a673

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/js/ui.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,9 @@ FileProgress.prototype.setCancelled = function(manual) {
358358
progressContainer += ' red';
359359
}
360360
this.fileProgressWrapper.attr('class', progressContainer);
361-
this.fileProgressWrapper.find('td .progress .progress-bar-info').css('width', 0);
361+
this.fileProgressWrapper.find('td .progress').remove();
362362
this.fileProgressWrapper.find('td:eq(2) .btn-default').hide();
363+
this.fileProgressWrapper.find('td:eq(2) .progressCancel').hide();
363364
};
364365

365366
FileProgress.prototype.setStatus = function(status, isUploading) {
@@ -375,9 +376,8 @@ FileProgress.prototype.uploadCancel = function(up) {
375376
self.fileProgressWrapper.find('td:eq(2) .progressCancel').on('click', function(){
376377
self.setCancelled(false);
377378
self.setStatus("取消上传");
378-
// var status_before = self.file.status;
379+
self.fileProgressWrapper.find('.status').css('left', '0');
379380
up.removeFile(self.file);
380-
up.stop();
381381
return true;
382382
});
383383
}

0 commit comments

Comments
 (0)