summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-09-22 11:57:52 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-09-22 11:57:52 -0400
commit7a8131028874b334e43b5e7dcf894a86481543c6 (patch)
tree32ffddad26af5570e714daf3fdf412c0740cca35
parentbd068df3892cdd0fa98d7355f975e1d1ee81ea73 (diff)
downloadpfsense-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.php5
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;
},
OpenPOWER on IntegriCloud