Page 1 of 1

Modify jqueryui datepicker

Posted: Wed Apr 23, 2014 10:17 pm
by rnott
I would like to modify the jqueryui datepicker in nuBuilder so that it will...
"Show month and year dropdowns in place of the static month/year header to facilitate navigation through large timeframes."

http://jqueryui.com/datepicker/#dropdown-month-year



Thanks,

Re: Modify jqueryui datepicker

Posted: Wed Apr 23, 2014 10:55 pm
by rnott
I modified the following lines in nuBuilderPro/nueditform.js and got the datepicker to show the month/year dropdowns

Code: Select all

...
               if(o[i].is_date && o[i].read_only != '1'){
                        $( "#"+e.id).datepicker({
                           changeMonth: true,
                           changeYear: true,
                           dateFormat: nuFormats[o[i].format].jquery
                        });
                }
...

Re: Modify jqueryui datepicker

Posted: Wed Apr 23, 2014 11:39 pm
by massiws
Thanks for sharing.