• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For js_calendar_pi

#1
[eluser]Unknown[/eluser]
Code:
selDate = (last_date != '') ? last_date : this.date;

var _monarr = new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
if (((this.year % 4 == 0) && (this.year % 100 != 0)) || (this.year % 400 == 0)) _monarr[1] = 29;
var _max_day_number = this.firstDay + _monarr[this.month];    
for (j = 0; j < _max_day_number; j++)
{}

OK, i add some code into js calendar file whith is in plugins folder of CI.

I think this is better than old.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.