Bug Tracker

Changeset 4249

Show
Ignore:
Timestamp:
12/20/07 13:15:46 (1 year ago)
Author:
kbwood.au
Message:

Allow date to be mandatory

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/current/datepicker/core/ui.datepicker.js

    r4235 r4249  
    6262        closeAtTop: true, // True to have the clear/close at the top, 
    6363            // false to have them at the bottom 
     64        mandatory: false, // True to hide the Clear link, false to include it 
    6465        hideIfNoPrevNext: false, // True to hide next/previous month links 
    6566            // if not applicable, false to just disable them 
     
    11341135        var isRTL = this._get('isRTL'); 
    11351136        // build the date picker HTML 
    1136         var clear = '<div class="datepicker_clear"><a onclick="jQuery.datepicker._clearDate(' + this._id + ');"' +  
     1137        var clear = (this._get('mandatory') ? '' : 
     1138            '<div class="datepicker_clear"><a onclick="jQuery.datepicker._clearDate(' + this._id + ');"' +  
    11371139            (showStatus ? this._addStatus(this._get('clearStatus')) : '') + '>' + 
    1138             this._get('clearText') + '</a></div>'; 
     1140            this._get('clearText') + '</a></div>'); 
    11391141        var controls = '<div class="datepicker_control">' + (isRTL ? '' : clear) + 
    11401142            '<div class="datepicker_close"><a onclick="jQuery.datepicker.hideDatepicker();"' +