Browse Source

Updates to release v4.3.3

Kartik Visweswaran 8 năm trước cách đây
mục cha
commit
bfdab33ca8
12 tập tin đã thay đổi với 22 bổ sung19 xóa
  1. 7 0
      CHANGE.md
  2. 1 1
      bower.json
  3. 1 1
      css/fileinput.css
  4. 1 1
      css/fileinput.min.css
  5. 1 1
      examples/index.html
  6. 5 8
      js/fileinput.js
  7. 1 2
      js/fileinput.min.js
  8. 1 1
      nuget/Package.nuspec
  9. 1 1
      package.json
  10. 1 1
      sass/fileinput.scss
  11. 1 1
      themes/fa/fa.js
  12. 1 1
      themes/gly/gly.js

+ 7 - 0
CHANGE.md

@@ -1,6 +1,13 @@
 Change Log: `bootstrap-fileinput`
 =================================
 
+## version 4.3.3
+
+**Date:** 29-Jun-2016
+
+1. (enh #695): Update Spanish Translations.
+2. (enh #698): Re-enable drag and drop support for IE Edge.
+
 ## version 4.3.2
 
 **Date:** 11-Jun-2016

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
     "name": "bootstrap-fileinput",
-    "version": "4.3.2",
+    "version": "4.3.3",
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "authors": [
         "Kartik Visweswaran <[email protected]>"

+ 1 - 1
css/fileinput.css

@@ -1,5 +1,5 @@
 /*!
- * bootstrap-fileinput v4.3.2
+ * bootstrap-fileinput v4.3.3
  * http://plugins.krajee.com/file-input
  *
  * Author: Kartik Visweswaran

+ 1 - 1
css/fileinput.min.css

@@ -1,5 +1,5 @@
 /*!
- * bootstrap-fileinput v4.3.2
+ * bootstrap-fileinput v4.3.3
  * http://plugins.krajee.com/file-input
  *
  * Author: Kartik Visweswaran

+ 1 - 1
examples/index.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- release v4.3.2, copyright 2014 - 2015 Kartik Visweswaran -->
+<!-- release v4.3.3, copyright 2014 - 2016 Kartik Visweswaran -->
 <html lang="en">
     <head>
         <meta charset="UTF-8"/>

+ 5 - 8
js/fileinput.js

@@ -1,5 +1,5 @@
 /*!
- * bootstrap-fileinput v4.3.2
+ * bootstrap-fileinput v4.3.3
  * http://plugins.krajee.com/file-input
  *
  * Author: Kartik Visweswaran
@@ -10,6 +10,7 @@
  */
 (function (factory) {
     "use strict";
+    //noinspection JSUnresolvedVariable
     if (typeof define === 'function' && define.amd) { // jshint ignore:line
         // AMD. Register as an anonymous module.
         define(['jquery'], factory); // jshint ignore:line
@@ -29,7 +30,7 @@
     $.fn.fileinputLocales = {};
     $.fn.fileinputThemes = {};
 
-    var NAMESPACE, MODAL_ID, STYLE_SETTING, OBJECT_PARAMS, DEFAULT_PREVIEW, objUrl, compare, isIE, isEdge, handler,
+    var NAMESPACE, MODAL_ID, STYLE_SETTING, OBJECT_PARAMS, DEFAULT_PREVIEW, objUrl, compare, isIE, handler,
         previewCache, getNum, hasFileAPISupport, hasDragDropSupport, hasFileUploadSupport, addCss, tMain1, tMain2,
         tPreview, tFileIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse, tModalMain, tModal, tProgress, tSize,
         tFooter, tActions, tActionDelete, tActionUpload, tActionZoom, tActionDrag, tTagBef, tTagBef1, tTagBef2, tTagAft,
@@ -70,9 +71,6 @@
         div.parentNode.removeChild(div);
         return status;
     };
-    isEdge = function () {
-        return new RegExp('Edge\/[0-9]+', 'i').test(navigator.userAgent);
-    };
     handler = function ($el, event, callback, skipNS) {
         var ev = skipNS ? event : event.split(' ').join(NAMESPACE + ' ') + NAMESPACE;
         $el.off(ev).on(ev, callback);
@@ -284,8 +282,7 @@
         /** @namespace div.draggable */
         /** @namespace div.ondragstart */
         /** @namespace div.ondrop */
-        return !isIE(9) && !isEdge() && // Fix for MS Edge drag & drop support bug
-            (div.draggable !== undefined || (div.ondragstart !== undefined && div.ondrop !== undefined));
+        return !isIE(9) && (div.draggable !== undefined || (div.ondragstart !== undefined && div.ondrop !== undefined));
     };
     hasFileUploadSupport = function () {
         return hasFileAPISupport() && window.FormData;
@@ -2640,7 +2637,7 @@
                     '0') + '</div>';
         },
         _renderFileFooter: function (caption, size, width, isError) {
-            var self = this, config = self.fileActionSettings, footer, rem = config.showRemove, drg = config.showDrag,
+            var self = this, config = self.fileActionSettings, rem = config.showRemove, drg = config.showDrag,
                 upl = config.showUpload, zoom = config.showZoom, out, template = self._getLayoutTemplate('footer'),
                 indicator = isError ? config.indicatorError : config.indicatorNew,
                 title = isError ? config.indicatorErrorTitle : config.indicatorNewTitle;

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 2
js/fileinput.min.js


+ 1 - 1
nuget/Package.nuspec

@@ -3,7 +3,7 @@
   <metadata>
     <id>bootstrap-fileinput</id>
 	<title>bootstrap-fileinput</title>
-    <version>4.3.2.1</version>
+    <version>4.3.3</version>
     <authors>Kartik Visweswaran</authors>
     <owners>Kartik Visweswaran</owners>
     <licenseUrl>https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md</licenseUrl>

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "bootstrap-fileinput",
-    "version": "4.3.2",
+    "version": "4.3.3",
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "authors": [
         "Kartik Visweswaran <[email protected]>"

+ 1 - 1
sass/fileinput.scss

@@ -1,5 +1,5 @@
 /*!
- * bootstrap-fileinput v4.3.2
+ * bootstrap-fileinput v4.3.3
  * http://plugins.krajee.com/file-input
  *
  * Author: Kartik Visweswaran

+ 1 - 1
themes/fa/fa.js

@@ -1,5 +1,5 @@
 /*!
- * bootstrap-fileinput v4.3.2
+ * bootstrap-fileinput v4.3.3
  * http://plugins.krajee.com/file-input
  *
  * Font Awesome icon theme configuration for bootstrap-fileinput. Requires font awesome assets to be loaded.

+ 1 - 1
themes/gly/gly.js

@@ -1,5 +1,5 @@
 /*!
- * bootstrap-fileinput v4.3.2
+ * bootstrap-fileinput v4.3.3
  * http://plugins.krajee.com/file-input
  *
  * Glyphicon (default) theme configuration for bootstrap-fileinput.

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác