aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-07-29 17:24:50 -0300
committerSilvio <silvio@socioambiental.org>2013-07-29 17:24:50 -0300
commitccc0c6735b4662eee4894cff0b0ef9f82419be1d (patch)
tree717a294e9859246f21abc7c5fe51c911cd8c7852
parent23656069bcbcd2092267ab2942912f949f5f6c4b (diff)
downloadgmap_arcgis_js-ccc0c6735b4662eee4894cff0b0ef9f82419be1d.tar.gz
gmap_arcgis_js-ccc0c6735b4662eee4894cff0b0ef9f82419be1d.tar.bz2
Enhancing showOverlay
-rw-r--r--gmap_arcgis.js25
1 files changed, 12 insertions, 13 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 715aeb0..3e57798 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -40,6 +40,7 @@ function gmapArcgis(config) {
// UI blocker wrapper
blockUI: function(params) {
+ console.log(window.ui);
if (window.ui == undefined || window.ui == 'unblocked') {
jQuery.blockUI(params);
window.ui = 'blocked';
@@ -62,20 +63,18 @@ function gmapArcgis(config) {
css = { };
}
- if (t == false) {
- this.blockUI({
- message: message,
- css: css,
- onUnblock: this.unBlockUI,
- });
- } else {
- this.blockUI({
- message: message,
- css: css,
- timeout: t,
- onUnblock: this.unBlockUI,
- });
+ var params = {
+ message: message,
+ css: css,
+ onUnblock: this.unBlockUI,
+ ignoreIfBlocked: true,
+ };
+
+ if (t != false) {
+ params.timeout = t;
}
+
+ this.blockUI(params);
}
},