瀏覽代碼

Merge pull request #687 from johanronn77/master

Wrong order in argument to "_renderFileActions"
Kartik Visweswaran 9 年之前
父節點
當前提交
d7a751a75c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/fileinput.js

+ 1 - 1
js/fileinput.js

@@ -2646,7 +2646,7 @@
                 title = isError ? config.indicatorErrorTitle : config.indicatorNewTitle;
                 title = isError ? config.indicatorErrorTitle : config.indicatorNewTitle;
             size = self._getSize(size);
             size = self._getSize(size);
             if (self.isUploadable) {
             if (self.isUploadable) {
-                out = template.replace(/\{actions}/g, self._renderFileActions(rem, upl, zoom, drg, false, false, false))
+                out = template.replace(/\{actions}/g, self._renderFileActions(upl, rem, zoom, drg, false, false, false))
                     .replace(/\{caption}/g, caption).replace(/\{size}/g, size).replace(/\{width}/g, width)
                     .replace(/\{caption}/g, caption).replace(/\{size}/g, size).replace(/\{width}/g, width)
                     .replace(/\{progress}/g, self._renderThumbProgress()).replace(/\{indicator}/g, indicator)
                     .replace(/\{progress}/g, self._renderThumbProgress()).replace(/\{indicator}/g, indicator)
                     .replace(/\{indicatorTitle}/g, title);
                     .replace(/\{indicatorTitle}/g, title);