xdan-datetimepicker-rails 2.2.7 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5425514c060aa4c98660cbb8f25e4ce3279f2791
|
|
4
|
+
data.tar.gz: 7dc0b85db001237b4932fccf9197a4c53e3485ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb8bad169424fbf8ccaf908a76644f6ca9b005e6d372d7b39f407c70d0fd813715f9f77d1f52a4c0afd622c8cf7ba33ecc94699a1e91551ad2c94769fb9216eb
|
|
7
|
+
data.tar.gz: 3cfba2e50d66242f7360468d1d515febb87c7ea21522a2e8f2b805fc138aa4a17006ebd7c879784fe59aac0e33efd5d625d7c320c0b3be2d85510bb8bcc4e6d3
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @preserve jQuery DateTimePicker plugin v2.2.
|
|
2
|
+
* @preserve jQuery DateTimePicker plugin v2.2.8
|
|
3
3
|
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
|
|
4
4
|
* (c) 2014, Chupurnov Valeriy.
|
|
5
5
|
*/
|
|
@@ -242,6 +242,10 @@
|
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
+
Date.prototype.countDaysInMonth = function(){
|
|
246
|
+
return new Date(this.getFullYear(), this.getMonth()+1, 0).getDate();
|
|
247
|
+
};
|
|
248
|
+
|
|
245
249
|
$.fn.xdsoftScroller = function( _percent ) {
|
|
246
250
|
return this.each(function() {
|
|
247
251
|
var timeboxparent = $(this);
|
|
@@ -879,7 +883,7 @@
|
|
|
879
883
|
|
|
880
884
|
var d,y,m,classes = [];
|
|
881
885
|
|
|
882
|
-
while( i<_xdsoft_datetime.currentTime.
|
|
886
|
+
while( i<_xdsoft_datetime.currentTime.countDaysInMonth()||start.getDay()!=options.dayOfWeekStart||_xdsoft_datetime.currentTime.getMonth()==start.getMonth() ) {
|
|
883
887
|
classes = [];
|
|
884
888
|
i++;
|
|
885
889
|
|