https://github.com/amsul/pickadate.js/blob/gh-pages/pickadat... the code is a giant var statement. I don't know why, but somehow that bothers me.
looks like a single var pattern inside an immediately invoked function expression to me. works well and great for readability
Pickadate.js
91–100 of 130 posts
Re: Pickadate.js
#92Re: Pickadate.js
#93Re: Pickadate.js
#94Earlier quoted context omitted.
The fact that the code is very neat and is well documented bothers me. Also the fact that javascript is a lot more readable when you put a blank line between every two lines bothers me (a lot!). And that it works perfectly and looks great, man that bothers me.
// If datePassed is true else if ( datePassed === true ) { Yes, very well documented. >.>
// Set the element as readonly
element.readOnly = true
// Get the date today
DATE_TODAY = P.getDateToday()
// Get the date to select
DATE_SELECTED = P.getDateSelected()
// Get the month to focus
MONTH_FOCUSED = P.getMonthFocused()
// Get the date ranges
DATE_MIN = P.getDateRange( SETTINGS.date_min )
DATE_MAX = P.getDateRange( SETTINGS.date_max, 1 )Re: Pickadate.js
#95Re: Pickadate.js
#96I really like the datepicker on https://www.google.com/flights/ . I wish someone would clone it for jQuery.
Re: Pickadate.js
#97Re: Pickadate.js
#98Wish it allowed me to type in the box..the interaction is a bit confusing..
Re: Pickadate.js
#99Re: Pickadate.js
#100Earlier quoted context omitted.
No. DatePickers, along with Forms, are the bane of my existence. More choices that are brought to light, the better.
There you go - this will make your life easier then: http://dojotoolkit.org/reference-guide/1.8/dijit/form.html#d...