Browse Source

to support 'extra' field update in filepreupload event handler

Juexin Wang 9 years ago
parent
commit
516e55d829
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/fileinput.js

+ 1 - 1
js/fileinput.js

@@ -1258,8 +1258,8 @@
                 processData: false,
                 contentType: false,
                 beforeSend: function() {
-                    fnBefore();
                     // to support extra field update in fnBefore function
+                    fnBefore.apply(this, arguments);
                     self.uploadExtra();                    
                 },
                 success: fnSuccess,