Browse Source

Updates to release v5.1.5 fix #1683

Kartik Visweswaran 4 years ago
parent
commit
33465514ed

+ 8 - 1
CHANGE.md

@@ -1,7 +1,14 @@
 Change Log: `bootstrap-fileinput`
 Change Log: `bootstrap-fileinput`
 =================================
 =================================
 
 
-## version 5.1.4
+## version 5.1.5
+
+**Date**: _under development_
+
+- (enh #1683): Better correct CSP Buffer Stash using CSSStyleDeclaration.
+- (enh #1681): Update Turkish Translations.
+
+## version 5.1.5
 
 
 **Date**: 12-Jan-2021
 **Date**: 12-Jan-2021
 
 

+ 1 - 1
bower.json

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

+ 1 - 1
css/fileinput-rtl.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.
  * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.

+ 1 - 1
css/fileinput-rtl.min.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.
  * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.

+ 1 - 1
css/fileinput.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee default styling for bootstrap-fileinput.
  * Krajee default styling for bootstrap-fileinput.

+ 1 - 1
css/fileinput.min.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee default styling for bootstrap-fileinput.
  * Krajee default styling for bootstrap-fileinput.

+ 1 - 1
examples/index.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
 <!DOCTYPE html>
-<!-- release v5.1.4, copyright 2014 - 2021 Kartik Visweswaran -->
+<!-- release v5.1.5, copyright 2014 - 2021 Kartik Visweswaran -->
 <!--suppress JSUnresolvedLibraryURL -->
 <!--suppress JSUnresolvedLibraryURL -->
 <html lang="en">
 <html lang="en">
 <head>
 <head>

+ 5 - 11
js/fileinput.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Author: Kartik Visweswaran
  * Author: Kartik Visweswaran
@@ -477,16 +477,10 @@
             stash: function (htmlString) {
             stash: function (htmlString) {
                 var self = this, outerDom = $.parseHTML('<div>' + htmlString + '</div>'), $el = $(outerDom);
                 var self = this, outerDom = $.parseHTML('<div>' + htmlString + '</div>'), $el = $(outerDom);
                 $el.find('[style]').each(function (key, elem) {
                 $el.find('[style]').each(function (key, elem) {
-                    var $elem = $(elem), styleString = $elem.attr('style'), id = $h.uniqId(), styles = {};
-                    if (styleString && styleString.length) {
-                        if (styleString.indexOf(';') === -1) {
-                            styleString += ';';
-                        }
-                        styleString.slice(0, styleString.length - 1).split(';').map(function (str) {
-                            str = str.split(':');
-                            if (str[0]) {
-                                styles[str[0]] = str[1] ? str[1] : '';
-                            }
+                    var $elem = $(elem), styleDeclaration = $elem[0].style, id = $h.uniqId(), styles = {};
+                    if (styleDeclaration && styleDeclaration.length) {
+                        $(styleDeclaration).each(function () {
+                            styles[this] = styleDeclaration[this];
                         });
                         });
                         self.domElementsStyles[id] = styles;
                         self.domElementsStyles[id] = styles;
                         $elem.removeAttr('style').attr(self.CSP_ATTRIB, id);
                         $elem.removeAttr('style').attr(self.CSP_ATTRIB, id);

File diff suppressed because it is too large
+ 1 - 1
js/fileinput.min.js


+ 1 - 1
nuget/Package.nuspec

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

+ 1 - 1
package.json

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

+ 1 - 1
scss/fileinput-rtl.scss

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.
  * Krajee RTL (Right To Left) default styling for bootstrap-fileinput.

+ 1 - 1
scss/fileinput.scss

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee default styling for bootstrap-fileinput.
  * Krajee default styling for bootstrap-fileinput.

+ 1 - 1
scss/themes/explorer-fa/theme.scss

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome 4.x theme style for bootstrap-fileinput. Load this theme file after loading
  * Krajee Explorer Font Awesome 4.x theme style for bootstrap-fileinput. Load this theme file after loading

+ 1 - 1
scss/themes/explorer-fas/theme.scss

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading

+ 1 - 1
scss/themes/explorer/theme.scss

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer theme style for bootstrap-fileinput. Load this theme file after loading `fileinput.css`.
  * Krajee Explorer theme style for bootstrap-fileinput. Load this theme file after loading `fileinput.css`.

+ 1 - 1
themes/explorer-fa/theme.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading

+ 1 - 1
themes/explorer-fa/theme.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput. 
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput. 

+ 1 - 1
themes/explorer-fa/theme.min.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading

+ 1 - 1
themes/explorer-fa/theme.min.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.

+ 1 - 1
themes/explorer-fas/theme.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading

+ 1 - 1
themes/explorer-fas/theme.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.

+ 1 - 1
themes/explorer-fas/theme.min.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading
  * Krajee Explorer Font Awesome 5.x theme style for bootstrap-fileinput. Load this theme file after loading

+ 1 - 1
themes/explorer-fas/theme.min.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.
  * Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.

+ 1 - 1
themes/explorer/theme.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer theme style for bootstrap-fileinput. Load this theme file after loading `fileinput.css`.
  * Krajee Explorer theme style for bootstrap-fileinput. Load this theme file after loading `fileinput.css`.

+ 1 - 1
themes/explorer/theme.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer theme configuration for bootstrap-fileinput. Load this theme file after loading `fileinput.js`.
  * Krajee Explorer theme configuration for bootstrap-fileinput. Load this theme file after loading `fileinput.js`.

+ 1 - 1
themes/explorer/theme.min.css

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer theme style for bootstrap-fileinput. Load this theme file after loading `fileinput.css`.
  * Krajee Explorer theme style for bootstrap-fileinput. Load this theme file after loading `fileinput.css`.

+ 1 - 1
themes/explorer/theme.min.js

@@ -1,5 +1,5 @@
 /*!
 /*!
- * bootstrap-fileinput v5.1.4
+ * bootstrap-fileinput v5.1.5
  * http://plugins.krajee.com/file-input
  * http://plugins.krajee.com/file-input
  *
  *
  * Krajee Explorer theme configuration for bootstrap-fileinput. Load this theme file after loading `fileinput.js`.
  * Krajee Explorer theme configuration for bootstrap-fileinput. Load this theme file after loading `fileinput.js`.

+ 1 - 1
themes/fa/theme.js

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

+ 1 - 1
themes/fa/theme.min.js

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

+ 1 - 1
themes/fas/theme.js

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

+ 1 - 1
themes/fas/theme.min.js

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

+ 1 - 1
themes/gly/theme.js

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

+ 1 - 1
themes/gly/theme.min.js

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

Some files were not shown because too many files changed in this diff