Преглед на файлове

Change maxFilesCount to maxFileCount

Kartik Visweswaran преди 10 години
родител
ревизия
5ca9affc5e
променени са 3 файла, в които са добавени 7 реда и са изтрити 7 реда
  1. 3 3
      README.md
  2. 4 4
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 3 - 3
README.md

@@ -326,7 +326,7 @@ _string_ the URL for the upload processing action (typically for ajax based proc
 #### maxFileSize
 _float_ the maximum file size for upload in KB.  If set to `0`, it means size allowed is unlimited. Defaults to `0`.
 
-#### maxFilesCount
+#### maxFileCount
 _float_ the maximum number of files allowed for each multiple upload. If set to `0`, it means number of files allowed is unlimited. Defaults to `0`.
 
 #### msgSizeTooLarge
@@ -342,7 +342,7 @@ where:
 - `{maxSize}`: will be replaced by the `maxFileSize` parameter.
 
 ### msgFilesTooMany
-_string_ the message to be displayed when the file count exceeds maximum count as set in `maxFilesCount`. Defaults to:
+_string_ the message to be displayed when the file count exceeds maximum count as set in `maxFileCount`. Defaults to:
 
 ```
 Number of files selected for upload <b>({n})</b> exceeds maximum allowed limit of <b>{m}</b>. Please retry your upload!
@@ -351,7 +351,7 @@ Number of files selected for upload <b>({n})</b> exceeds maximum allowed limit o
 where:
 
 - `{n}`: will be replaced by number of files selected for upload
-- `{m}`: will be replaced by the allowed maximum files as set in `maxFilesCount`
+- `{m}`: will be replaced by the allowed maximum files as set in `maxFileCount`
 
 #### msgFileNotFound
 _string_ the exception message to be displayed when the file selected is not found by the FileReader. Defaults to:

+ 4 - 4
js/fileinput.js

@@ -115,7 +115,7 @@
             self.showCaption = options.showCaption;
             self.showPreview = options.showPreview;
             self.maxFileSize = options.maxFileSize;
-            self.maxFilesCount = options.maxFilesCount;
+            self.maxFileCount = options.maxFileCount;
             self.msgSizeTooLarge = options.msgSizeTooLarge;
             self.msgFilesTooMany = options.msgFilesTooMany;
             self.msgFileNotFound = options.msgFileNotFound;
@@ -457,8 +457,8 @@
                 $preview.html(self.initialPreviewContent);
             }
             var total = tfiles.length;
-            if (self.maxFilesCount > 0 && total > self.maxFilesCount) {
-                var msg = self.msgFilesTooMany.replace('{m}', self.maxFilesCount).replace('{n}', total);
+            if (self.maxFileCount > 0 && total > self.maxFileCount) {
+                var msg = self.msgFilesTooMany.replace('{m}', self.maxFileCount).replace('{n}', total);
                 self.isError = self.showError(msg, null, null, null);
                 self.$container.removeClass('file-input-new');
                 return;
@@ -602,7 +602,7 @@
         uploadClass: 'btn btn-default',
         uploadUrl: null,
         maxFileSize: 0,
-        maxFilesCount: 0,
+        maxFileCount: 0,
         msgSizeTooLarge: 'File "{name}" (<b>{size} KB</b>) exceeds maximum allowed upload size of <b>{maxSize} KB</b>. Please retry your upload!',
         msgFilesTooMany: 'Number of files selected for upload <b>({n})</b> exceeds maximum allowed limit of <b>{m}</b>. Please retry your upload!',
         msgFileNotFound: 'File "{name}" not found!',

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
js/fileinput.min.js


Някои файлове не бяха показани, защото твърде много файлове са промени