diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-09-22 12:00:27 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-09-22 12:02:06 -0400 |
commit | 27d1807aa074bcf316e814ef3d4b9790f35d1a69 (patch) | |
tree | c483aead47226c56fb1adf3f8bc49372bb550080 /src/usr/local | |
parent | c95c70e2215664d7c1b31b9e83a1f06a64bf46ca (diff) | |
download | pfsense-27d1807aa074bcf316e814ef3d4b9790f35d1a69.zip pfsense-27d1807aa074bcf316e814ef3d4b9790f35d1a69.tar.gz |
Don't call widget callback function if no data is returned
(cherry picked from commit 89d83febe6bf0fd63ec72d53eb8e524a8d19994e)
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/index.php | 5 |
1 files changed, 4 insertions, 1 deletions
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; }, |