summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/local/www/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php
index 9620965..a9d58e7 100644
--- a/src/usr/local/www/index.php
+++ b/src/usr/local/www/index.php
@@ -665,7 +665,7 @@ events.push(function() {
var freq = ajaxspecs[ajaxidx].freq; // widget can specifify it should be called freq times around hte loop
if (!ajaxmutex) {
- if ((ajaxcntr % freq) === 0) {
+ if (((ajaxcntr % freq) === 0) && (typeof ajaxspecs[ajaxidx].callback === "function" )) {
make_ajax_call(ajaxspecs[ajaxidx]);
}
OpenPOWER on IntegriCloud