From ec5d461b898b7c6b39cd3b1776230f34bce05f5b Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 29 Jul 2013 17:34:38 -0300 Subject: Moving unblockUI() to showKML() --- gmap_arcgis.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gmap_arcgis.js b/gmap_arcgis.js index c03778d..f777d5f 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -33,16 +33,16 @@ function gmapArcgis(config) { // UI unblocker wrapper unblockUI: function() { if (window.ui == undefined || window.ui == 'blocked') { - jQuery.unblockUI(); window.ui = 'unblocked'; + jQuery.unblockUI(); } }, // UI blocker wrapper blockUI: function(params) { if (window.ui == undefined || window.ui == 'unblocked') { - jQuery.blockUI(params); window.ui = 'blocked'; + jQuery.blockUI(params); } }, @@ -205,13 +205,13 @@ function gmapArcgis(config) { this.config['kmls'][element].overlay.setMap(this.map); this.config['kmls'][element].isVisible = true; + this.unblockUI(); }, // Add a KML layer into the map addKML: function(element) { if (typeof this.config['kmls'][element].overlay != 'undefined') { this.showKML(element); - this.unblockUI(); return; } -- cgit v1.2.3