Changeset 290
- Timestamp:
- 06/16/08 05:46:11 (6 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.datepicker.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.datepicker.js
r285 r290 962 962 else 963 963 switch (format.charAt(iFormat)) { 964 case 'd' || 'm' ||'y':964 case 'd': case 'm': case 'y': 965 965 chars += '0123456789'; 966 966 break; 967 case 'D' ||'M':967 case 'D': case 'M': 968 968 return null; // Accept anything 969 969 case "'": … … 1162 1162 (showStatus ? this._addStatus(this._get('nextStatus') || ' ') : '') + '>' + 1163 1163 this._get('nextText') + '</a>' : 1164 (hideIfNoPrevNext ? ' >' : '<label>' + this._get('nextText') + '</label>')) + '</div>';1164 (hideIfNoPrevNext ? '' : '<label>' + this._get('nextText') + '</label>')) + '</div>'; 1165 1165 var html = (prompt ? '<div class="' + $.datepicker._promptClass + '">' + prompt + '</div>' : '') + 1166 1166 (closeAtTop && !this._inline ? controls : '') + … … 1369 1369 date.setMilliseconds(0); 1370 1370 } 1371 return date || (checkRange ? this._rangeStart : null); 1371 return (!checkRange || !this._rangeStart ? date : 1372 (!date || this._rangeStart > date ? this._rangeStart : date)); 1372 1373 }, 1373 1374