Skip to content

Commit

Permalink
Update to 2.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
shekibobo committed May 28, 2014
1 parent 5269434 commit 76c1cc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions app/assets/javascripts/jquery.xdan.datetimepicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @preserve jQuery DateTimePicker plugin v2.2.7
* @preserve jQuery DateTimePicker plugin v2.2.8
* @homepage http://xdsoft.net/jqplugins/datetimepicker/
* (c) 2014, Chupurnov Valeriy.
*/
Expand Down Expand Up @@ -242,6 +242,10 @@
}
};

Date.prototype.countDaysInMonth = function(){
return new Date(this.getFullYear(), this.getMonth()+1, 0).getDate();
};

$.fn.xdsoftScroller = function( _percent ) {
return this.each(function() {
var timeboxparent = $(this);
Expand Down Expand Up @@ -879,7 +883,7 @@

var d,y,m,classes = [];

while( i<_xdsoft_datetime.currentTime.getDaysInMonth()||start.getDay()!=options.dayOfWeekStart||_xdsoft_datetime.currentTime.getMonth()==start.getMonth() ) {
while( i<_xdsoft_datetime.currentTime.countDaysInMonth()||start.getDay()!=options.dayOfWeekStart||_xdsoft_datetime.currentTime.getMonth()==start.getMonth() ) {
classes = [];
i++;

Expand Down
2 changes: 1 addition & 1 deletion lib/xdan-datetimepicker-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module XdanDatetimepickerRails
VERSION = '2.2.7'
VERSION = '2.2.8'
end

0 comments on commit 76c1cc6

Please sign in to comment.