Changeset 28578


Ignore:
Timestamp:
05/31/14 20:48:11 (5 years ago)
Author:
rvelices
Message:

time picker more forgiving with parsing errors (accept dates only without time)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/js/datepicker.js

    r28500 r28578  
    7878    // set value from linked input 
    7979    if (linked) { 
    80       if (value[0].length == 10 && !options.showTimepicker) { 
     80      if (value[0].length == 10 && (!options.showTimepicker || value.length==1)) { 
    8181        set(jQuery.datepicker.parseDate('yy-mm-dd', value[0]), true); 
    8282      } 
Note: See TracChangeset for help on using the changeset viewer.