File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ $(function() {
3535 plupload . each ( files , function ( file ) {
3636 var progress = new FileProgress ( file , 'fsUploadProgress' ) ;
3737 progress . setStatus ( "等待..." ) ;
38- progress . uploadCancel ( up ) ;
38+ progress . bindUploadCancel ( up ) ;
3939 } ) ;
4040 } ,
4141 'BeforeUpload' : function ( up , file ) {
@@ -44,15 +44,13 @@ $(function() {
4444 if ( up . runtime === 'html5' && chunk_size ) {
4545 progress . setChunkProgess ( chunk_size ) ;
4646 }
47- progress . uploadCancel ( up ) ;
47+ progress . bindUploadCancel ( up ) ;
4848 } ,
4949 'UploadProgress' : function ( up , file ) {
5050 var progress = new FileProgress ( file , 'fsUploadProgress' ) ;
51-
5251 var chunk_size = plupload . parseSize ( this . getOption ( 'chunk_size' ) ) ;
53-
5452 progress . setProgress ( file . percent + "%" , file . speed , chunk_size ) ;
55- progress . uploadCancel ( up ) ;
53+ progress . bindUploadCancel ( up ) ;
5654
5755 } ,
5856 'UploadComplete' : function ( ) {
Original file line number Diff line number Diff line change @@ -369,7 +369,8 @@ FileProgress.prototype.setStatus = function(status, isUploading) {
369369 }
370370} ;
371371
372- FileProgress . prototype . uploadCancel = function ( up ) {
372+ // 绑定取消上传事件
373+ FileProgress . prototype . bindUploadCancel = function ( up ) {
373374 var self = this ;
374375 if ( up ) {
375376
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ tr .progressCancel{
7272 float : right;
7373 position : relative;
7474 z-index : 100 ;
75+ color : # 333 ;
76+ text-decoration : none;
7577}
7678.status {
7779 position : absolute;
You can’t perform that action at this time.
0 commit comments