From 8975cbd94eb6b34b9ee3038041705674a092d300 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Jan 2018 15:48:06 +0100 Subject: bootstrap-datepicker: custom fix for bad inline detection --- bootstrap_datepicker/static/js/bootstrap-datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap_datepicker/static') diff --git a/bootstrap_datepicker/static/js/bootstrap-datepicker.js b/bootstrap_datepicker/static/js/bootstrap-datepicker.js index 58a60a603..e986eb32b 100644 --- a/bootstrap_datepicker/static/js/bootstrap-datepicker.js +++ b/bootstrap_datepicker/static/js/bootstrap-datepicker.js @@ -98,7 +98,7 @@ this.element = $(element); this.isInput = this.element.is('input'); this.inputField = this.isInput ? this.element : this.element.find('input'); - this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-addon, .btn') : false; + this.component = this.element.hasClass('date') ? this.element.find('.add-on, .input-group-append, .btn') : false; if (this.component && this.component.length === 0) this.component = false; this.isInline = !this.component && this.element.is('div'); -- cgit v1.2.3