From 750972e2c23a0f6ec06c94b09e32718354d03602 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 18 Nov 2014 17:39:01 -0200 Subject: Support for a custom selector on blockUI/unblockUI --- gmap_arcgis.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 1203e66..5cef37f 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -45,7 +45,12 @@ function gmapArcgis(config) { } if (window.blockUI.length == 0) { - jQuery.unblockUI(); + if (this.config.overlaySelector != undefined) { + $(this.config.overlaySelector).unblock(); + } + else { + jQuery.unblockUI(); + } } }, @@ -61,7 +66,13 @@ function gmapArcgis(config) { if (window.blockUI[params.name] == undefined || window.blockUI[params.name] != true) { window.blockUI[params.name] = true; - jQuery.blockUI(params); + + if (this.config.overlaySelector != undefined) { + $(this.config.overlaySelector).block(params); + } + else { + jQuery.blockUI(params); + } } }, -- cgit v1.2.3