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) ? '
' : ''; @@ -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;