Changeset 12520


Ignore:
Timestamp:
Oct 26, 2011, 4:58:35 PM (13 years ago)
Author:
patdenice
Message:

merge r12519 from trunk to branch 2.3
bug:2480
datepicker need to use removeAttr jquery function to remove an attribute.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/themes/default/js/datepicker.js

    r5123 r12520  
    4444
    4545    // Init list
    46     $(day + " option").attr("disabled", "");
    47     $(month + " option").attr("disabled", "");
     46    $(day + " option").removeAttr("disabled");
     47    $(month + " option").removeAttr("disabled");
    4848
    4949    var daysInMonth = 32 - new Date(y, m - 1, 32).getDate();
     
    7878        if (op_cmp ==  "lt")
    7979        {
    80             $(month + " option:eq(" + (0) +")").attr("disabled", "");
     80            $(month + " option:eq(" + (0) +")").removeAttr("disabled");
    8181        }
    8282
     
    8686          if (op_cmp ==  "lt")
    8787          {
    88             $(day + " option:eq(" + (0) +")").attr("disabled", "");
     88            $(day + " option:eq(" + (0) +")").removeAttr("disabled");
    8989          }
    9090        }
Note: See TracChangeset for help on using the changeset viewer.