Prechádzať zdrojové kódy

Updates to release v4.3.2

Kartik Visweswaran 9 rokov pred
rodič
commit
172c382961
3 zmenil súbory, kde vykonal 15 pridanie a 10 odobranie
  1. 4 1
      CHANGE.md
  2. 11 9
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 4 - 1
CHANGE.md

@@ -3,12 +3,15 @@ Change Log: `bootstrap-fileinput`
 
 ## version 4.3.2 (under development)
 
-**Date:** 06-Apr-2016
+**Date:** 14-May-2016
 
 1. (bug #595): Correct initialization of `allowedPreviewTypes`.
 2. (enh #600): Synchronize latest package on NuGet.
 3. (enh #604): Fixed unset method in deleting previewCache index.
 4. (enh #605): Fixed previewCache tags reset.
+5. (enh #615): Correct Finnish Localizations.
+6. (enh #618): Update German Translations.
+7. (enh #632): Find correct filename in IE9.
 
 ## version 4.3.1
 

+ 11 - 9
js/fileinput.js

@@ -39,7 +39,8 @@
         tMain2, tPreview, tIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse, tModal, tProgress, tFooter,
         tActions, tActionDelete, tActionUpload, tZoom, tGeneric, tHtml, tImage, tText, tVideo, tAudio, tFlash, tObject,
         tOther, defaultLayoutTemplates, defaultPreviewTemplates, defaultPreviewTypes, defaultPreviewSettings, FileInput,
-        defaultFileTypeSettings, isEmpty, isArray, isSet, getElement, uniqId, htmlEncode, replaceTags, cleanMemory;
+        defaultFileTypeSettings, isEmpty, isArray, isSet, getElement, uniqId, htmlEncode, replaceTags, cleanMemory,
+        findFileName;
 
     NAMESPACE = '.fileinput';
     //noinspection JSUnresolvedVariable
@@ -529,6 +530,13 @@
         /** @namespace objUrl.revokeObjectURL */
         objUrl.revokeObjectURL(data);
     };
+    findFileName = function (filePath) {
+        var sepIndex = filePath.lastIndexOf('/');
+        if (sepIndex === -1) {
+            sepIndex = filePath.lastIndexOf('\\');
+        }
+        return filePath.split(filePath.substring(sepIndex, sepIndex + 1)).pop();
+    };
     FileInput = function (element, options) {
         var self = this;
         self.$element = $(element);
@@ -1854,16 +1862,10 @@
             readFile(0);
             self._updateFileDetails(numFiles, false);
         },
-        _findFileName: function (filePath) {
-            var sepIndex = filePath.lastIndexOf('/');
-            if (sepIndex == -1) {
-                sepIndex = filePath.lastIndexOf('\\');
-            }
-            return filePath.split(filePath.substring(sepIndex, sepIndex + 1)).pop();
-        },
         _updateFileDetails: function (numFiles) {
             var self = this, $el = self.$element, fileStack = self.getFileStack(),
-                name = (isIE(9) && self._findFileName($el.val())) || ($el[0].files[0] && $el[0].files[0].name) || (fileStack.length && fileStack[0].name) || '',
+                name = (isIE(9) && findFileName($el.val())) ||
+                    ($el[0].files[0] && $el[0].files[0].name) || (fileStack.length && fileStack[0].name) || '',
                 label = self.slug(name), n = self.isUploadable ? fileStack.length : numFiles,
                 nFiles = previewCache.count(self.id) + n, log = n > 1 ? self._getMsgSelected(nFiles) : label;
             if (self.isError) {

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
js/fileinput.min.js


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov