xdan-datetimepicker-rails 2.4.8 → 2.4.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 000e7cac60824b9375541947e409bec90a71c5ff
|
4
|
+
data.tar.gz: b2a8a7c83f46121595828f9d1d1ba1a9bf3a43a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 721296f3119c4c3e03138c99bbe399afb793a64ddae77bbc1efa250f0c1e266ff9ff886765f32ccecd248ca3ab13dd37fe4edb3b618dd1ad4cd6699a741b2d58
|
7
|
+
data.tar.gz: 6d9835a25ef7dc34bd6b594f274745fde464035fd9f413b786c1c7040cfa22382e39b1fd528b45d2831ea2d53b3d627985a0e96f5b176d360e8a95dfdb2f9043
|
@@ -575,7 +575,7 @@ var DateFormatter;
|
|
575
575
|
}
|
576
576
|
};
|
577
577
|
})();/**
|
578
|
-
* @preserve jQuery DateTimePicker plugin v2.4.
|
578
|
+
* @preserve jQuery DateTimePicker plugin v2.4.9
|
579
579
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
580
580
|
* @author Chupurnov Valeriy (<chupurnov@gmail.com>)
|
581
581
|
*/
|
@@ -1417,8 +1417,9 @@ var DateFormatter;
|
|
1417
1417
|
});
|
1418
1418
|
};
|
1419
1419
|
|
1420
|
-
$.fn.datetimepicker = function (opt) {
|
1421
|
-
var
|
1420
|
+
$.fn.datetimepicker = function (opt, opt2) {
|
1421
|
+
var result = this,
|
1422
|
+
KEY0 = 48,
|
1422
1423
|
KEY9 = 57,
|
1423
1424
|
_KEY0 = 96,
|
1424
1425
|
_KEY9 = 105,
|
@@ -1477,13 +1478,12 @@ var DateFormatter;
|
|
1477
1478
|
timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
|
1478
1479
|
timebox = $('<div class="xdsoft_time_variant"></div>'),
|
1479
1480
|
applyButton = $('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),
|
1480
|
-
|
1481
|
-
scroller = $('<div class="xdsoft_scroller"></div>'),*/
|
1481
|
+
|
1482
1482
|
monthselect = $('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),
|
1483
1483
|
yearselect = $('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),
|
1484
1484
|
triggerAfterOpen = false,
|
1485
1485
|
XDSoft_datetime,
|
1486
|
-
|
1486
|
+
|
1487
1487
|
xchangeTimer,
|
1488
1488
|
timerclick,
|
1489
1489
|
current_time_index,
|
@@ -1575,6 +1575,10 @@ var DateFormatter;
|
|
1575
1575
|
}
|
1576
1576
|
});
|
1577
1577
|
|
1578
|
+
datetimepicker.getValue = function () {
|
1579
|
+
return _xdsoft_datetime.getCurrentTime();
|
1580
|
+
};
|
1581
|
+
|
1578
1582
|
datetimepicker.setOptions = function (_options) {
|
1579
1583
|
var highlightedDates = {},
|
1580
1584
|
getCaretPos = function (input) {
|
@@ -2756,7 +2760,8 @@ var DateFormatter;
|
|
2756
2760
|
ctrlDown = false;
|
2757
2761
|
}
|
2758
2762
|
});
|
2759
|
-
|
2763
|
+
|
2764
|
+
this.each(function () {
|
2760
2765
|
var datetimepicker = $(this).data('xdsoft_datetimepicker'), $input;
|
2761
2766
|
if (datetimepicker) {
|
2762
2767
|
if ($.type(opt) === 'string') {
|
@@ -2785,6 +2790,10 @@ var DateFormatter;
|
|
2785
2790
|
$input = datetimepicker.data('input');
|
2786
2791
|
$input.trigger('blur.xdsoft');
|
2787
2792
|
break;
|
2793
|
+
default:
|
2794
|
+
if (datetimepicker[opt] && $.isFunction(datetimepicker[opt])) {
|
2795
|
+
result = datetimepicker[opt](opt2);
|
2796
|
+
}
|
2788
2797
|
}
|
2789
2798
|
} else {
|
2790
2799
|
datetimepicker
|
@@ -2800,6 +2809,8 @@ var DateFormatter;
|
|
2800
2809
|
}
|
2801
2810
|
}
|
2802
2811
|
});
|
2812
|
+
|
2813
|
+
return result;
|
2803
2814
|
};
|
2804
2815
|
$.fn.datetimepicker.defaults = default_options;
|
2805
2816
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.4.
|
2
|
+
* @preserve jQuery DateTimePicker plugin v2.4.9
|
3
3
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
4
4
|
* @author Chupurnov Valeriy (<chupurnov@gmail.com>)
|
5
5
|
*/
|
@@ -841,8 +841,9 @@
|
|
841
841
|
});
|
842
842
|
};
|
843
843
|
|
844
|
-
$.fn.datetimepicker = function (opt) {
|
845
|
-
var
|
844
|
+
$.fn.datetimepicker = function (opt, opt2) {
|
845
|
+
var result = this,
|
846
|
+
KEY0 = 48,
|
846
847
|
KEY9 = 57,
|
847
848
|
_KEY0 = 96,
|
848
849
|
_KEY9 = 105,
|
@@ -901,13 +902,12 @@
|
|
901
902
|
timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
|
902
903
|
timebox = $('<div class="xdsoft_time_variant"></div>'),
|
903
904
|
applyButton = $('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),
|
904
|
-
|
905
|
-
scroller = $('<div class="xdsoft_scroller"></div>'),*/
|
905
|
+
|
906
906
|
monthselect = $('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),
|
907
907
|
yearselect = $('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),
|
908
908
|
triggerAfterOpen = false,
|
909
909
|
XDSoft_datetime,
|
910
|
-
|
910
|
+
|
911
911
|
xchangeTimer,
|
912
912
|
timerclick,
|
913
913
|
current_time_index,
|
@@ -999,6 +999,10 @@
|
|
999
999
|
}
|
1000
1000
|
});
|
1001
1001
|
|
1002
|
+
datetimepicker.getValue = function () {
|
1003
|
+
return _xdsoft_datetime.getCurrentTime();
|
1004
|
+
};
|
1005
|
+
|
1002
1006
|
datetimepicker.setOptions = function (_options) {
|
1003
1007
|
var highlightedDates = {},
|
1004
1008
|
getCaretPos = function (input) {
|
@@ -2180,7 +2184,8 @@
|
|
2180
2184
|
ctrlDown = false;
|
2181
2185
|
}
|
2182
2186
|
});
|
2183
|
-
|
2187
|
+
|
2188
|
+
this.each(function () {
|
2184
2189
|
var datetimepicker = $(this).data('xdsoft_datetimepicker'), $input;
|
2185
2190
|
if (datetimepicker) {
|
2186
2191
|
if ($.type(opt) === 'string') {
|
@@ -2209,6 +2214,10 @@
|
|
2209
2214
|
$input = datetimepicker.data('input');
|
2210
2215
|
$input.trigger('blur.xdsoft');
|
2211
2216
|
break;
|
2217
|
+
default:
|
2218
|
+
if (datetimepicker[opt] && $.isFunction(datetimepicker[opt])) {
|
2219
|
+
result = datetimepicker[opt](opt2);
|
2220
|
+
}
|
2212
2221
|
}
|
2213
2222
|
} else {
|
2214
2223
|
datetimepicker
|
@@ -2224,6 +2233,8 @@
|
|
2224
2233
|
}
|
2225
2234
|
}
|
2226
2235
|
});
|
2236
|
+
|
2237
|
+
return result;
|
2227
2238
|
};
|
2228
2239
|
$.fn.datetimepicker.defaults = default_options;
|
2229
2240
|
|