diff gis_gui/lib/blocks.js @ 65:2f477270cc0c

adding layers to maps works now
author casties
date Tue, 09 Nov 2010 20:49:36 +0100
parents 7f008e782563
children 49fb47bbe2e6
line wrap: on
line diff
--- a/gis_gui/lib/blocks.js	Tue Nov 09 16:29:56 2010 +0100
+++ b/gis_gui/lib/blocks.js	Tue Nov 09 20:49:36 2010 +0100
@@ -5,8 +5,8 @@
     console = {
 	log : function(){},
 	debug : function(){},
-	error : function(){},
-    }
+	error : function(){}
+    };
 }
 
 function defined(x) {
@@ -32,7 +32,7 @@
     this.id = id; // the blocks html id
     this.element = element; // the html dom element
     this.storeId = null; // the id in online storage
-    this.params = new Object(); // parameters to store
+    this.params = {}; // parameters to store
     return this;
 };
 
@@ -61,7 +61,7 @@
         } else {
         	// default after load function
         	$(this).fadeIn();
-        };
+        }
     	
     });
     // create new Block object
@@ -78,7 +78,7 @@
     // add to list of blocks
     this.blocks.push(block);
     return block;
-}
+};
 
 guiBlocks.prototype.getBlock = function(id) {
     for (b in this.blocks) {
@@ -87,7 +87,7 @@
 	}
     }
     return null;
-}
+};
 
 /*
 guiBlocks.prototype.getStoreItem = function(tag,type,item) {
@@ -100,7 +100,7 @@
     // loads list of id and type objects and executes callback function
     var url = "../db/RESTjson/db/public/gui_objects/"+escape(storeTag)+"/"+storeType+"?recursive=true";
     jQuery.getJSON(url,callback);
-}
+};
 
 
 guiBlocks.Block.prototype.storeBlock = function(storeTag) {
@@ -160,10 +160,10 @@
     // TitleBar Close
     $("div.block div.titlebar div.close_button").live("click", function(e){
 	segment = $(this).parents().filter("div.block");
-	segment.fadeOut(function(){ segment.remove()});
+	segment.fadeOut(function(){ segment.remove();});
       });
 
-};
+}
 
 
 function randomString() {