flatpickr 2.4.0.0 → 2.4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flatpickr/version.rb +1 -1
- data/vendor/assets/javascripts/flatpickr.js +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a85d78c78d3aa652d5c54c8eb889a3bbd1e76a30
|
4
|
+
data.tar.gz: bc8d1d8d90c3e89dbf882c271a265443f963c49f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ea9f6f61747f6512a823c1a70e0dafa33023483e662656edebe9d1b634c094730f56213b90ca2924a23a3d91e8eb43b3da5eff8235e2a44c7bf89e04bc334e1
|
7
|
+
data.tar.gz: 37eac9df36a15b11ddc4394068b8218ca20b93e7acfbe58e408f2a0a7106874e0e36d4099c382212dea95d050337b27f0825d1193df85710a422f6b5517ffd8c
|
data/lib/flatpickr/version.rb
CHANGED
@@ -2,7 +2,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
2
2
|
|
3
3
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
4
4
|
|
5
|
-
/*! flatpickr v2.4, @license MIT */
|
5
|
+
/*! flatpickr v2.4.2, @license MIT */
|
6
6
|
function Flatpickr(element, config) {
|
7
7
|
var self = this;
|
8
8
|
|
@@ -929,8 +929,10 @@ function Flatpickr(element, config) {
|
|
929
929
|
for (var i = 0; i < boolOpts.length; i++) {
|
930
930
|
self.config[boolOpts[i]] = self.config[boolOpts[i]] === true || self.config[boolOpts[i]] === "true";
|
931
931
|
}for (var _i = 0; _i < hooks.length; _i++) {
|
932
|
-
self.config[hooks[_i]] = arrayify(self.config[hooks[_i]]);
|
933
|
-
}
|
932
|
+
self.config[hooks[_i]] = arrayify(self.config[hooks[_i]] || []);
|
933
|
+
}
|
934
|
+
|
935
|
+
if (!userConfig.dateFormat && userConfig.enableTime) {
|
934
936
|
self.config.dateFormat = self.config.noCalendar ? "H:i" + (self.config.enableSeconds ? ":S" : "") : Flatpickr.defaultConfig.dateFormat + " H:i" + (self.config.enableSeconds ? ":S" : "");
|
935
937
|
}
|
936
938
|
|
@@ -1320,6 +1322,7 @@ function Flatpickr(element, config) {
|
|
1320
1322
|
self.mobileInput.tabIndex = 1;
|
1321
1323
|
self.mobileInput.type = inputType;
|
1322
1324
|
self.mobileInput.disabled = self.input.disabled;
|
1325
|
+
self.mobileInput.placeholder = self.input.placeholder;
|
1323
1326
|
|
1324
1327
|
self.mobileFormatStr = inputType === "datetime-local" ? "Y-m-d\\TH:i:S" : inputType === "date" ? "Y-m-d" : "H:i:S";
|
1325
1328
|
|