Fixes possible issue with WCF.Upload.Parallel
authorMatthias Schmidt <gravatronics@live.com>
Wed, 4 Dec 2013 17:30:20 +0000 (18:30 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 4 Dec 2013 17:30:20 +0000 (18:30 +0100)
wcfsetup/install/files/js/WCF.js

index 55da2936dfa5eada8b2c66c5222a349c8efe7d4c..13dbd73c3f42edaa7323d6eb7c458f1caf8e7229 100755 (executable)
@@ -7463,7 +7463,9 @@ WCF.Upload.Parallel = WCF.Upload.extend({
         */
        init: function(buttonSelector, fileListSelector, className, options) {
                // force multiple uploads
-               options.multiple = true;
+               options = $.extend(true, options || { }, {
+                       multiple: true
+               });
                
                this._super(buttonSelector, fileListSelector, className, options);
        },