From: Ca-Phun Ung Date: Sat, 31 Jan 2009 10:40:55 +0000 (+0000) Subject: datepicker: #4003 - Inline datepicker and button panel. X-Git-Tag: 1.6~134 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=658a0f7f4097da160ef7117ad7e8c48494a242e3;p=jquery-ui.git datepicker: #4003 - Inline datepicker and button panel. --- 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;