From 37ef3ba8a875e69834e533f728ddc5c92ef9dc56 Mon Sep 17 00:00:00 2001 From: Patrick J Gallagher Date: Thu, 21 Jul 2016 14:08:20 -0500 Subject: [PATCH] Get rid of .size() The .size() call has been deprecated as of JQ 1.8. A call to .length works and doesn't break the code. --- .../static/bootstrap3_datetime/js/bootstrap-datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {