aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2014-11-18 17:39:01 -0200
committerSilvio <silvio@socioambiental.org>2014-11-18 17:39:01 -0200
commit750972e2c23a0f6ec06c94b09e32718354d03602 (patch)
tree8578be346a1c2185fb53e1fe67eee03f31766685
parentccb12f8fa0b4d70a5a98c4adbb9eee55905c0f06 (diff)
downloadgmap_arcgis_js-750972e2c23a0f6ec06c94b09e32718354d03602.tar.gz
gmap_arcgis_js-750972e2c23a0f6ec06c94b09e32718354d03602.tar.bz2
Support for a custom selector on blockUI/unblockUI
-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);
+ }
}
},