瀏覽代碼

Updates to release v4.1.8

Kartik Visweswaran 10 年之前
父節點
當前提交
430fd89f3d
共有 4 個文件被更改,包括 8 次插入6 次删除
  1. 2 0
      CHANGE.md
  2. 3 3
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js
  4. 3 3
      js/fileinput_locale_es.js

+ 2 - 0
CHANGE.md

@@ -51,6 +51,8 @@ version 4.1.8
 28. (enh #217): Ensure `filebatchselected` event is triggered after FileReader completes reading files selected.
 29. (enh #218): Do not clear preview for ajaxuploads until remove button clicked.
 30. (enh #222): Enhance to include dynamically replaceable thumbnail tags. Two new properties `previewThumbTags` and `initialPreviewThumbTags` will be available for configuration.
+31. (enh #225): Create Russian translations.
+32. (enh #226): Create Spanish (Latin American) translations.
 
 version 4.1.7
 =============

+ 3 - 3
js/fileinput.js

@@ -31,13 +31,13 @@
         previewCache = {
             data: {},
             init: function (obj) {
-                var content = obj.initialPreview, config = obj.initialPreviewConfig, id = obj.id;
+                var content = obj.initialPreview, id = obj.id;
                 if (content.length > 0 && !isArray(content)) {
                     content = content.split(obj.initialPreviewDelimiter);
                 }
                 previewCache.data[id] = {
                     content: content,
-                    config: config,
+                    config: obj.initialPreviewConfig,
                     tags: obj.initialPreviewThumbTags,
                     delimiter: obj.initialPreviewDelimiter,
                     template: obj.previewGenericTemplate,
@@ -1187,7 +1187,7 @@
                     if (allFiles) {
                         self.uploadCache.content.push(content[0]);
                         self.uploadCache.config.push(config[0]);
-                        self.uploadCache.config.push(tags[0]);
+                        self.uploadCache.tags.push(tags[0]);
                         self.uploadCache.append = append;
                     } else {
                         previewCache.set(self.id, content, config, tags, append);

文件差異過大導致無法顯示
+ 0 - 0
js/fileinput.min.js


+ 3 - 3
js/fileinput_locale_es.js

@@ -1,5 +1,5 @@
 /*!
- * FileInput Spanish (latinamerican) Translations - Template file for copying and creating other translations
+ * FileInput Spanish (Latin American) Translations
  *
  * This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or
  * any HTML markup tags in the messages must not be converted or translated.
@@ -11,7 +11,7 @@
 (function ($) {
     "use strict";
 
-    $.fn.fileinput.locales.en = {
+    $.fn.fileinput.locales.es = {
         fileSingle: 'archivo',
         filePlural: 'archivos',
         browseLabel: 'Buscar …',
@@ -39,5 +39,5 @@
         dropZoneTitle: 'Arrastre y suelte los archivos aquí …'
     };
 
-    $.extend($.fn.fileinput.defaults, $.fn.fileinput.locales.en);
+    $.extend($.fn.fileinput.defaults, $.fn.fileinput.locales.es);
 })(window.jQuery);

部分文件因文件數量過多而無法顯示