mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Added 'options' object to the parameters of afterInit and afterUpdate callbacks
This commit is contained in:
+4
-2
@@ -172,7 +172,7 @@
|
||||
$.fn.mapael.updateElem(elemOptions, plots[id], $tooltip, animDuration);
|
||||
}
|
||||
|
||||
opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots);
|
||||
opt.afterUpdate && opt.afterUpdate($self, paper, areas, plots, options);
|
||||
});
|
||||
|
||||
// Handle resizing of the map
|
||||
@@ -205,7 +205,7 @@
|
||||
}
|
||||
|
||||
// Hook that allows to add custom processing on the map
|
||||
options.map.afterInit && options.map.afterInit($self, paper, areas, plots);
|
||||
options.map.afterInit && options.map.afterInit($self, paper, areas, plots, options);
|
||||
|
||||
$(paper.desc).append(" and Mapael (http://neveldo.fr/mapael)");
|
||||
});
|
||||
@@ -477,6 +477,8 @@
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}).on("scroll", function(e) {
|
||||
console.log("test");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user