aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
},