jquery-datetimepicker-rails 2.2.7.0 → 2.2.8.0

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: 0bd592c9061f859b3d3748784a1a64b78d64a475
4
- data.tar.gz: 989d72d872d9ed5bdc3c18336a69bf97a068cf97
3
+ metadata.gz: 641d653d6fbbd7c4011b1f296f8536dddfc48dd3
4
+ data.tar.gz: 2db7555012c03a748ecf3001be250db39a13ef37
5
5
  SHA512:
6
- metadata.gz: c389862476b82e4162ba03d5b4cf641096a630965b7cfd1aebacde2c5bf15366b1a77541c642ed5df3ba0421dcac7bbc7b99d11477d355fbc57a94501cf4aac4
7
- data.tar.gz: cd4225d8dea7b67cb2c6ad6b6c80095c5d1d65732fce4cd40ce4f47d63ad23cffaa2a51ac507d85f7c17e145ce71e61b53c0fd3b6a536220f9d7f28431075d98
6
+ metadata.gz: fe059019916f46bc1ad17ab23681e20de16ccc092405b24d6813d69aa8ed083b5619de0214c16e36f31a03997a551a4190f48403edd3b4740448bd004b61e955
7
+ data.tar.gz: 4c16a9321f0a87b7ad0fcfe5ad16b74ce83c66747667b8e66bff77d2065876dcb2dd65e54839fa33c800bb4431f8b3d967f9fa0ed680dcde8e1df00725875492
@@ -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,7 +1,7 @@
1
1
  module Jquery
2
2
  module Datetimepicker
3
3
  module Rails
4
- VERSION = '2.2.7.0'
4
+ VERSION = '2.2.8.0'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-datetimepicker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7.0
4
+ version: 2.2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Novikov