rem: ,updateall: function(num,showall){  if (typeof num == "number" && num != GSN.updatenb) return; GSN.updatenb++;  $(".refreshing").show();  var firstload = !GSN.loaded;  $.ajax({ type: "GET", url: "/gsn", success: function(data){ var start = new Date();   if (!GSN.loaded) GSN.init(data);    if (firstload && GSN.context == "home") { for (var i = 0; i < 10; ++i){ var n = $($("virtual-sensor",data).get(i)).attr("name"); if (n!=null) GSN.vsbox.add(n); } } else if (firstload && GSN.context == "fullmap") { $("virtual-sensor",data).each(function(){ GSN.vsbox.add($(this).attr("name")); }); 
add: ,updateall:function (){ if (GSN.map.loaded && $("#refreshall_autozoomandcenter").attr("checked")){  if (GSN.map.highlighted!=null) map.panTo(GSN.map.markers[GSN.map.highlighted].getPoint()); else GSN.map.showAllMarkers(); 
context: 	,updateall: function(num,showall){		//to prevent multiple update instance		if (typeof num == "number" && num != GSN.updatenb) return;		GSN.updatenb++;				$(".refreshing").show();				var firstload = !GSN.loaded;  				$.ajax({ type: "GET", url: "/gsn", success: function(data){			var start = new Date();									//initalisation of gsn info, vsmenu			if (!GSN.loaded) GSN.init(data);									//create vsbox on the first load			if (firstload && GSN.context == "home") {				for (var i = 0; i < 10; ++i){					var n = $($("virtual-sensor",data).get(i)).attr("name");					if (n!=null) GSN.vsbox.add(n);				}			} else if (firstload && GSN.context == "fullmap") {				$("virtual-sensor",data).each(function(){					GSN.vsbox.add($(this).attr("name"));				});			}						//update vsbox			$("virtual-sensor",data).each(function(){				GSN.vsbox.update($(this));			});						//update map			GSN.map.autozoomandcenter();						//next refresh			if($("#refreshall_timeout").attr("value") > 0)				setTimeout("GSN.updateall("+GSN.updatenb+")", $("#refreshall_timeout").attr("value"));						$(".refreshing").hide();							var diff = new Date() - start;			GSN.debug("updateall time:"+diff/1000); 		}});	}
meta: 37	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/37/a31d85d853a22365f10afdb759fbbb8cd6f2df29/gsn.js/buggy/webapp/js/gsn.js