File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE HTML>
2
2
<!--
3
3
/*
4
- * jQuery File Upload Plugin jQuery UI Demo 9.0.0
4
+ * jQuery File Upload Plugin jQuery UI Demo 9.0.1
5
5
* https://github.com/blueimp/jQuery-File-Upload
6
6
*
7
7
* Copyright 2013, Sebastian Tschan
@@ -161,7 +161,7 @@ <h3 class="title"></h3>
161
161
</ td >
162
162
< td >
163
163
{ % if ( ! i && ! o . options . autoUpload ) { % }
164
- < button class = "start" > Start</ button >
164
+ < button class = "start" disabled > Start</ button >
165
165
{ % } %}
166
166
{ % if ( ! i ) { % }
167
167
< button class = "cancel" > Cancel</ button >
Original file line number Diff line number Diff line change 1
1
/*
2
- * jQuery File Upload jQuery UI Plugin 8.7.0
2
+ * jQuery File Upload jQuery UI Plugin 8.7.1
3
3
* https://github.com/blueimp/jQuery-File-Upload
4
4
*
5
5
* Copyright 2013, Sebastian Tschan
27
27
$ . widget ( 'blueimp.fileupload' , $ . blueimp . fileupload , {
28
28
29
29
options : {
30
+ processdone : function ( e , data ) {
31
+ data . context . find ( '.start' ) . button ( 'enable' ) ;
32
+ } ,
30
33
progress : function ( e , data ) {
31
34
if ( data . context ) {
32
35
data . context . find ( '.progress' ) . progressbar (
85
88
return node ;
86
89
} ,
87
90
91
+ _startHandler : function ( e ) {
92
+ $ ( e . currentTarget ) . button ( 'disable' ) ;
93
+ this . _super ( e ) ;
94
+ } ,
95
+
88
96
_transition : function ( node ) {
89
97
var deferred = $ . Deferred ( ) ;
90
98
if ( node . hasClass ( 'fade' ) ) {
You can’t perform that action at this time.
0 commit comments