From 4da80d04185a06a8d1fb04ad6b9abfaecbbb6017 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 29 Jul 2013 16:57:07 -0300 Subject: Back to the simpler blockUI/unblockUI --- gmap_arcgis.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 018e470..9303c8f 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -32,18 +32,12 @@ function gmapArcgis(config) { // UI unblocker wrapper unblockUI: function() { - if (this.config.ui == undefined || this.config.ui == 'blocked') { - jQuery.unblockUI(); - this.config.ui = 'unblocked'; - } + jQuery.unblockUI(); }, // UI blocker wrapper blockUI: function(params) { - if (this.config.ui == undefined || this.config.ui == 'unblocked') { - jQuery.blockUI(params); - this.config.ui = 'blocked'; - } + this.config.ui = 'blocked'; }, // Block the UI and show an overlay -- cgit v1.2.3