diff --git a/bootstrap3_datetime/static/bootstrap3_datetime/js/bootstrap-datetimepicker.js b/bootstrap3_datetime/static/bootstrap3_datetime/js/bootstrap-datetimepicker.js index a93b3ed..32d796f 100644 --- a/bootstrap3_datetime/static/bootstrap3_datetime/js/bootstrap-datetimepicker.js +++ b/bootstrap3_datetime/static/bootstrap3_datetime/js/bootstrap-datetimepicker.js @@ -106,7 +106,7 @@ THE SOFTWARE. picker.component = false; if (picker.element.hasClass('input-group')) { - if (picker.element.find('.datepickerbutton').size() == 0) {//in case there is more then one 'input-group-addon' Issue #48 + if (picker.element.find('.datepickerbutton').length == 0) {//in case there is more then one 'input-group-addon' Issue #48 picker.component = picker.element.find("[class^='input-group-']"); } else {