diff options
author | Silvio <silvio@socioambiental.org> | 2014-11-18 17:39:01 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2014-11-18 17:39:01 -0200 |
commit | 750972e2c23a0f6ec06c94b09e32718354d03602 (patch) | |
tree | 8578be346a1c2185fb53e1fe67eee03f31766685 | |
parent | ccb12f8fa0b4d70a5a98c4adbb9eee55905c0f06 (diff) | |
download | gmap_arcgis_js-750972e2c23a0f6ec06c94b09e32718354d03602.tar.gz gmap_arcgis_js-750972e2c23a0f6ec06c94b09e32718354d03602.tar.bz2 |
Support for a custom selector on blockUI/unblockUI
-rw-r--r-- | gmap_arcgis.js | 15 |
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); + } } }, |