[Mapbender-commits] r3965 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri May 29 04:03:16 EDT 2009


Author: verenadiewald
Date: 2009-05-29 04:03:14 -0400 (Fri, 29 May 2009)
New Revision: 3965

Modified:
   branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php
Log:
some smaller changes for better possibility of styling the gazetteer frame

Modified: branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php	2009-05-29 07:57:48 UTC (rev 3964)
+++ branches/2.6/http/javascripts/mod_wfs_gazetteer_client.php	2009-05-29 08:03:14 UTC (rev 3965)
@@ -175,9 +175,8 @@
 			currentImg.name = buttonWfs_id[i];
 			currentImg.title = buttonWfs_title_off[i];
 			currentImg.src = buttonWfs_imgdir+buttonWfs_src[i];
-			currentImg.style.marginRight = "5px";
+			currentImg.style.margin = "5px";
 			currentImg.onmouseover = new Function("wfsInitFunction("+i+")");
-			
 			document.getElementById("displaySpatialButtons").appendChild(currentImg);
 		}
 	}
@@ -234,7 +233,7 @@
 				spatialRes.id = "spatialResHint";
 				spatialRes.name = "spatialResHint";
 				document.getElementById("displaySpatialButtons").appendChild(spatialRes);
-				document.getElementById("spatialResHint").innerHTML = spatialRequestIsSetMessage;
+				document.getElementById("spatialResHint").innerHTML = "<br>"+spatialRequestIsSetMessage;
 				spatialRequestGeom = queryGeom;
 			}
 			parent.mb_disableThisButton(selectedType);
@@ -356,8 +355,6 @@
 		var currentNode = document.getElementById(currentId);
 		removeChildNodes(currentNode);
 	}
-	//document.getElementById("wfsGeomType").style.visibility = "hidden";
-	//document.getElementById("wfsRemove").style.visibility = "hidden";
 		
 	geomArray = new parent.GeometryArray();
 
@@ -589,7 +586,7 @@
 	var delFilterButton = document.createElement("input");
 	delFilterButton.type = "button";
 	delFilterButton.style.marginLeft = "5px";
-	delFilterButton.className = global_wfsConfObj[global_selectedWfsConfId].g_button_id;
+	delFilterButton.className = "buttonDelFilter";
 	delFilterButton.value = clearFilterButtonLabel;
 	// Internet explorer
 	if (parent.ie) {
@@ -603,8 +600,8 @@
 		delFilterButton.onclick = function () {
 			clearFilter();
 		}
-	}  
-	form.appendChild(delFilterButton);
+	}
+ 	form.appendChild(delFilterButton);
 	
 	checkSrs();
 }
@@ -1068,7 +1065,8 @@
 		}
 		resultGeometryPopup.show();
 		parent.$("#resultTable").tablesorter({
-     		sortList: [[0,0]]
+     		sortList: [[0,0]],
+     		widgets: ['zebra'] 
         });
 	}
 	else{
@@ -1108,10 +1106,10 @@
 						listOfGeom += "<td style='cursor:pointer;\n";
 						if(showResultInPopup==1){
 							if ((i % 2) === 0) {
-								listOfGeom += "color:blue'";
+								listOfGeom += "' class='even'";
 							}
 							else {
-								listOfGeom += "color:red'";
+								listOfGeom += "' class='odd'";
 							}
 						}
 						else{
@@ -1283,11 +1281,12 @@
 
 </script>
 </head>
-<body leftmargin='0' topmargin='10'  bgcolor='#ffffff'>
+<body>
 <form name='selectWfsConfForm' id='selectWfsConfForm'></form>
 <div name='wfsIcons' id='wfsIcons'></div>
-<div name='displaySpatialButtons' id='displaySpatialButtons' style='width:180px;margin-top:5px;'></div>
-<form name='wfsForm' id='wfsForm' onsubmit='return validate()'></form>
+<div name='displaySpatialButtons' id='displaySpatialButtons' style='width:180px;margin-top:5px;background-color:#FFFFFF;'></div>
+<form name='wfsForm' id='wfsForm' onsubmit='return validate()'>
+</form>
 <div name='res' id='res' style='width:180px'></div>
 </body>
 </html>



More information about the Mapbender_commits mailing list