diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-09-11 18:19:27 +0200 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-01-29 17:47:46 -0500 |
commit | 9ec69ccb73910af57a8457a65d19a98d34af2c84 (patch) | |
tree | f1c4cab0aed4852dc06fed693e144467127fe348 /demos/datepicker | |
parent | e50d6d3bd2a6e7c01a2af61164105824a85d89d7 (diff) | |
download | jquery-ui-9ec69ccb73910af57a8457a65d19a98d34af2c84.tar.gz jquery-ui-9ec69ccb73910af57a8457a65d19a98d34af2c84.zip |
Datepicker: Fix the `eachDay` option
Use the `eachDay` option in the other-months demo.
Fix handling of `extraClasses` property, split on space.
Diffstat (limited to 'demos/datepicker')
-rw-r--r-- | demos/datepicker/other-months.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/demos/datepicker/other-months.html b/demos/datepicker/other-months.html index bad2b1977..bfb3f1af3 100644 --- a/demos/datepicker/other-months.html +++ b/demos/datepicker/other-months.html @@ -17,8 +17,13 @@ <script> $(function() { $( "#datepicker" ).datepicker({ - showOtherMonths: true, - selectOtherMonths: true + eachDay: function( day ) { + if ( day.lead ) { + day.render = true; + day.selectable = true; + day.extraClasses = "ui-priority-secondary"; + } + } }); }); </script> |