mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ensure the callback function exists before calling
This commit is contained in:
parent
8bf4cf1f14
commit
e78d59403b
@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user