From 9e56f271a776ae7362b28530b278254fee3ef233 Mon Sep 17 00:00:00 2001 From: Fabian Wolf Date: Fri, 4 Nov 2016 14:58:23 +0100 Subject: [PATCH] Clarified event triggering. --- assets/plugin.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/plugin.js b/assets/plugin.js index 4ac77a2..940c0f5 100644 --- a/assets/plugin.js +++ b/assets/plugin.js @@ -19,7 +19,9 @@ jQuery( function() { if( typeof( strMapID ) != 'undefined' && strMapID != '' && typeof( config ) == 'object' ) { // fire custom init event - jQuery( document ).trigger( '_ui_leaflet_map_init' ); + jQuery( document ).trigger( '_ui_leaflet_map_init' ); // base event + + jQuery( document ).trigger( '_ui_leaflet_map_init__' + strMapID ); // custom map id @@ -103,8 +105,9 @@ jQuery( function() { } } + jQuery( document ).trigger( '_ui_leaflet_map_loaded' ); // base event - jQuery( document ).trigger( '_ui_leaflet_map_loaded' ); + jQuery( document ).trigger( '_ui_leaflet_map_loaded__' + strMapID ); } }) }