diff options
author | Silvio <silvio@socioambiental.org> | 2013-07-29 17:34:38 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-07-29 17:34:38 -0300 |
commit | ec5d461b898b7c6b39cd3b1776230f34bce05f5b (patch) | |
tree | 3e01c118fa6cdf424cf467a26e1e2cd0b508d33a | |
parent | be8210703b90c0d42378a219346a82149b35f972 (diff) | |
download | gmap_arcgis_js-ec5d461b898b7c6b39cd3b1776230f34bce05f5b.tar.gz gmap_arcgis_js-ec5d461b898b7c6b39cd3b1776230f34bce05f5b.tar.bz2 |
Moving unblockUI() to showKML()
-rw-r--r-- | gmap_arcgis.js | 6 |
1 files 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; } |