From 5a920d2b48caefd0cdd29bc031530eee4205c237 Mon Sep 17 00:00:00 2001 From: Keith Wood Date: Mon, 16 Jun 2008 12:46:11 +0000 Subject: [PATCH] Fixed #2658 Next link shows > when hideIfNoPrevNext is true Fixed #2700 Datepicker does not allow manual entry of alphabetic characters Fixed #2724 Date range + restricting allows invalid range --- ui/ui.datepicker.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index 643f6de04..4a5447671 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -961,10 +961,10 @@ $.extend(Datepicker.prototype, { chars += format.charAt(iFormat); else switch (format.charAt(iFormat)) { - case 'd' || 'm' || 'y': + case 'd': case 'm': case 'y': chars += '0123456789'; break; - case 'D' || 'M': + case 'D': case 'M': return null; // Accept anything case "'": if (lookAhead("'")) @@ -1161,7 +1161,7 @@ $.extend(DatepickerInstance.prototype, { '' + this._get('nextText') + '' : - (hideIfNoPrevNext ? '>' : '')) + ''; + (hideIfNoPrevNext ? '' : '')) + ''; var html = (prompt ? '
' + prompt + '
' : '') + (closeAtTop && !this._inline ? controls : '') + '