Guest User

Untitled

a guest
Jan 24th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function(){
  2.        
  3.         var testCallback = function($td,thisDate, year, month,day)
  4.         {
  5.             // some implementation here
  6.            
  7.             // selecting items on same cases $td.addClass('selected');
  8.            
  9.             return true;
  10.         }
  11.          
  12.        
  13.         $('#calendar')
  14.             .renderCalendar({renderCallback:testCallback})         
  15.             .datePicker(
  16.                 {  
  17.                     inline:true,
  18.                     selectMultiple:false,
  19.                     startDate:'01/01/1990'
  20.                 })             
  21.             .bind(
  22.             'dateSelected',
  23.             function(e, selectedDate, $td)
  24.             {
  25.                 date = selectedDate.asString();
  26.                
  27.                 date = date.split(/\//);
  28.                
  29.                 getStuffByAjax(date[2],date[1],date[0]);
  30.             }
  31.         );
  32.        
  33. });
  34.  
  35. function getStuffByAjax(year,month,day){
  36.     // some implementation here
  37.    
  38.     return true;       
  39. }
Add Comment
Please, Sign In to add comment