jquery - jQueryUI datepicker maxdate -


i´m using jqueryui 1.10.3. version todays date choosable. version 1.9.1 choose dates placed infinitely in future. presume there bug somewhere in code. while in 1.10.3 console says nothing, 1.9.1 threw "t.originalevent undefined" (in firebug) , "cannot read property 'type' of undefined" (in chrome dev tools). how can find error specifically?

my js-code:

    $(function() {         $( ".datepicker" ).datepicker({             numberofmonths: 3,             mindate: 0,              maxdate: "+3m"         });         $( ".datepicker" ).datepicker( "option", "dateformat", "dd.mm.yy" );         $.datepicker.regional['de'] = {             cleartext: 'löschen',              clearstatus: 'aktuelles datum löschen',              closetext: 'ok',              closestatus: 'schließen ohne Änderung',              prevtext: '< früher',              prevbigtext: '<<',              prevstatus: 'zeige vorherigen monat',              prevbigstatus: 'zeige vorheriges jahr',             nexttext: 'später >',             nextbigtext: '>>',              nextstatus: 'zeige nächsten monat',              nextbigstatus: 'zeige nächstes jahr',              currenttext: 'heute',              currentstatus: 'zeige jetzigen monat',              monthnames: ['januar','februar','märz','april','mai','juni', 'juli','august','september','oktober','november','dezember'],              monthnamesshort: ['jan', 'feb', 'mär', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dez'],              monthstatus: 'zeige anderen monat',              yearstatus: 'zeige anderes jahr',              weekheader: 'w',              weekstatus: 'woches des jahres',              daynames: ['sonntag', 'montag', 'dienstag', 'mittwoch', 'donnerstag', 'freitag', 'samstag'],              daynamesshort: ['so', 'mo', 'di', 'mi', 'do', 'fr', 'sa'],              daynamesmin: ['so','mo','di','mi','do','fr','sa'],              daystatus: 'als ersten tag der woche setzen',              datestatus: 'wähle d, m d',              dateformat: 'mm/tt/jj',              firstday: 1,              initstatus: 'wähle ein datum',              isrtl: false          };         $.datepicker.setdefaults($.datepicker.regional['de']);         $('.timepicker').timepicker({             timeformat: 'hh:mm',             hourgrid: 6,             minutegrid: 15,             stepminute: 15,             addslideraccess: true,             slideraccessargs: { touchonly: false },             timeonlytitle: 'lieferzeit',             timetext: 'vorschau',             hourtext: 'stunde',             minutetext: 'minute',             currenttext: 'jetzt',             closetext: 'ok'         });     }); 

screenshot: enter image description here

i found out timepicker addon i´m using causes crash. installed timepicker (jquery simple timepicker) , works fine. bug discussed here: jquery ui datepicker , timepicker conflict mindate , maxdate (error parsing date string: missing number @ position 0)


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -