From 89d83febe6bf0fd63ec72d53eb8e524a8d19994e Mon Sep 17 00:00:00 2001 From: Steve Beaver Date: Fri, 22 Sep 2017 12:00:27 -0400 Subject: Don't call widget callback function if no data is returned --- src/usr/local/www/index.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 2a053f7..b5a150d 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -610,7 +610,10 @@ events.push(function() { data: wd.parms, success: function(data){ - wd.callback(data); + if (data.length > 0) { + wd.callback(data); + } + ajaxmutex = false; }, -- cgit v1.1