Changeset 4249
- Timestamp:
- 12/20/07 13:15:46 (1 year ago)
- Files:
-
- 1 modified
-
trunk/ui/current/datepicker/core/ui.datepicker.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/current/datepicker/core/ui.datepicker.js
r4235 r4249 62 62 closeAtTop: true, // True to have the clear/close at the top, 63 63 // false to have them at the bottom 64 mandatory: false, // True to hide the Clear link, false to include it 64 65 hideIfNoPrevNext: false, // True to hide next/previous month links 65 66 // if not applicable, false to just disable them … … 1134 1135 var isRTL = this._get('isRTL'); 1135 1136 // 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 + ');"' + 1137 1139 (showStatus ? this._addStatus(this._get('clearStatus')) : '') + '>' + 1138 this._get('clearText') + '</a></div>' ;1140 this._get('clearText') + '</a></div>'); 1139 1141 var controls = '<div class="datepicker_control">' + (isRTL ? '' : clear) + 1140 1142 '<div class="datepicker_close"><a onclick="jQuery.datepicker.hideDatepicker();"' +
