aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.js')
-rw-r--r--gmap_arcgis.js15
1 files 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);
+ }
}
},