diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-09-22 11:57:52 -0400 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-09-22 11:57:52 -0400 |
commit | 7a8131028874b334e43b5e7dcf894a86481543c6 (patch) | |
tree | 32ffddad26af5570e714daf3fdf412c0740cca35 | |
parent | bd068df3892cdd0fa98d7355f975e1d1ee81ea73 (diff) | |
download | pfsense-7a8131028874b334e43b5e7dcf894a86481543c6.zip pfsense-7a8131028874b334e43b5e7dcf894a86481543c6.tar.gz |
Dashboard refresh system should not call the widget callback function if no data was returned
-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 a9d58e7..f7500f2 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -647,7 +647,10 @@ events.push(function() { data: wd.parms, success: function(data){ - wd.callback(data); + if (data.length > 0 ) { + wd.callback(data); + } + ajaxmutex = false; }, |