From 658a0f7f4097da160ef7117ad7e8c48494a242e3 Mon Sep 17 00:00:00 2001 From: Ca-Phun Ung Date: Sat, 31 Jan 2009 10:40:55 +0000 Subject: datepicker: #4003 - Inline datepicker and button panel. --- ui/ui.datepicker.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index c7705949d..9237de33f 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1307,7 +1307,7 @@ $.extend(Datepicker.prototype, { var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today); currentText = (!navigationAsDateFormat ? currentText : this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); - var controls = ''; + var controls = (!inst.inline ? '' : ''); var buttonPanel = (showButtonPanel) ? '
' + (isRTL ? controls : '') + (this._isInRange(inst, gotoDate) ? '' : '') + (isRTL ? '' : controls) + '
' : ''; @@ -1405,8 +1405,7 @@ $.extend(Datepicker.prototype, { } html += group; } - html += (!inst.inline ? buttonPanel : '') + - ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ? + html += buttonPanel + ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ? '' : ''); inst._keyEvent = false; return html; -- cgit v1.2.3