xdan-datetimepicker-rails 2.2.7 → 2.2.8

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: bb6adeedff6d8f657a8397c4a20ace10d5fc28f6
4
- data.tar.gz: 165829daa2ccfbd7411ea0798d34ef0bb7ecdcea
3
+ metadata.gz: 5425514c060aa4c98660cbb8f25e4ce3279f2791
4
+ data.tar.gz: 7dc0b85db001237b4932fccf9197a4c53e3485ef
5
5
  SHA512:
6
- metadata.gz: 0e4b1b13369ba85d0cac04a2541b2b0b588582243ee0a11af1a114bb14e860f22fce478060b771ca12d0bd4a2abc9037b7733d9fa7dc2d268c2c5c2a1309fb8a
7
- data.tar.gz: 09275376d544b3fb08731c63cfb4a3e5d8ec1fecc0a3ecd5880d8c8f00ac943e82273a0321958e5c9bb32c91e8ef4f4fe8ca1a4a81a1b3166d019db2b1a6965b
6
+ metadata.gz: bb8bad169424fbf8ccaf908a76644f6ca9b005e6d372d7b39f407c70d0fd813715f9f77d1f52a4c0afd622c8cf7ba33ecc94699a1e91551ad2c94769fb9216eb
7
+ data.tar.gz: 3cfba2e50d66242f7360468d1d515febb87c7ea21522a2e8f2b805fc138aa4a17006ebd7c879784fe59aac0e33efd5d625d7c320c0b3be2d85510bb8bcc4e6d3
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @preserve jQuery DateTimePicker plugin v2.2.7
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.getDaysInMonth()||start.getDay()!=options.dayOfWeekStart||_xdsoft_datetime.currentTime.getMonth()==start.getMonth() ) {
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
 
@@ -1,3 +1,3 @@
1
1
  module XdanDatetimepickerRails
2
- VERSION = '2.2.7'
2
+ VERSION = '2.2.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xdan-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Kovach