[Mapbender-commits] r3157 - branches/beck_dev/http/gazetteer_rostock
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Oct 22 08:37:26 EDT 2008
Author: beck
Date: 2008-10-22 08:37:25 -0400 (Wed, 22 Oct 2008)
New Revision: 3157
Modified:
branches/beck_dev/http/gazetteer_rostock/mod_WFSStreetGaz_client.js
Log:
Modified: branches/beck_dev/http/gazetteer_rostock/mod_WFSStreetGaz_client.js
===================================================================
--- branches/beck_dev/http/gazetteer_rostock/mod_WFSStreetGaz_client.js 2008-10-21 11:29:25 UTC (rev 3156)
+++ branches/beck_dev/http/gazetteer_rostock/mod_WFSStreetGaz_client.js 2008-10-22 12:37:25 UTC (rev 3157)
@@ -4,12 +4,13 @@
*/
eventInit.register(function() {
global_resultHighlight1 = new Highlight(targetArray2, "wfsGazetteerHighlight1", {"position":"absolute", "top":"0px", "left":"0px", "z-index":100}, 4);
- global_resultHighlight2 = new Highlight(targetArray3, "wfsGazetteerHighlight2", {"position":"absolute", "top":"0px", "left":"0px", "z-index":100}, 4);
+ global_resultHighlight2 = new Highlight(targetArray3, "wfsGazetteerHighlight2", {"position":"absolute", "top":"0px", "left":"0px", "z-index":100}, 4);
mb_registerSubFunctions("global_resultHighlight1.paint()");
mb_registerSubFunctions("global_resultHighlight2.paint()");
- });
+ });
+
+var formSubmitted = false;
-var formSubmitted = false;
$(document).ready(function(){
$("<form>").attr({"id":"searchFormStreet","method":"post","action":"mod_WFSStreetGaz_client.php?"+getParamsForm2}).appendTo("#"+e_id2);
$("#searchFormStreet").submit( function() {
@@ -403,7 +404,7 @@
$("#hnrUl").css('list-style', 'none');
$("#hnrUl").css('margin', '0');
$("#hnrUl").css('padding', '0');
- for (var i=0; i < geomArray2.count(); i++) {
+ for (var i=0; i < geomArray2.count(); i++) {
if(searchAbbr==shortName2[0]){
(function () {
var geomStr = searchAbbr + i;
@@ -498,17 +499,23 @@
"zoomTo":"1.0",
"offsetParam":offsetParamStr
});
+ $(this).clone().prependTo('#td_h');
});
})();
}
else if (searchAbbr==shortName2[2]){
(function () {
var geomStr = searchAbbr + i;
- var geomIndex = i;
+ var geomIndex = i;
+
$("<li>").attr({"id":searchAbbr+i}).appendTo("#hnrUl");
- $("#"+searchAbbr+i).css('float', 'left');
- $("#"+searchAbbr+i).css('margin', '2px');
- $("#"+searchAbbr+i).css('padding', '1px 2px');
+ $("#"+searchAbbr+i).css('float','left');
+ $("#"+searchAbbr+i).css('width','25px');
+ $("#"+searchAbbr+i).css('height','25px');
+ $("#"+searchAbbr+i).css('margin','1px');
+ $("#"+searchAbbr+i).css('line-height','25px');
+ $("#"+searchAbbr+i).css('text-align','center');
+ $("#"+searchAbbr+i).css('border','1px solid #EEE');
if(i==9){
$("#"+geomStr).text(geomArray2.get(i).e.getElementValueByName(resVal7));
$("<br>").appendTo("#"+geomStr);
@@ -587,7 +594,6 @@
else {
alert("No results.");
}
-
-formSubmitted = false;
+ formSubmitted = false;
});
}
More information about the Mapbender_commits
mailing list