From 822827f4396aa9569624bf4faf9cc711781e3d49 Mon Sep 17 00:00:00 2001 From: andrewmnlv Date: Mon, 23 May 2016 17:36:42 +0300 Subject: [PATCH] fix: currentTime can't be null for inline mode; remove unused throttle var --- jquery.datetimepicker.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 9ea6e86..18cafe9 100755 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -925,8 +925,7 @@ setPos, timer = 0, _xdsoft_datetime, - forEachAncestorOf, - throttle; + forEachAncestorOf; if (options.id) { datetimepicker.attr('id', options.id); @@ -1286,7 +1285,7 @@ else if (_this.isValidDate(dTime)) { _this.currentTime = dTime; } - else if (!dTime && !requireValidDate && options.allowBlank) { + else if (!dTime && !requireValidDate && options.allowBlank && !options.inline) { _this.currentTime = null; } else {