[Mapbender-commits] r3211 - branches/beck_dev/http/gazetteer_rostock
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Nov 11 04:11:04 EST 2008
Author: beck
Date: 2008-11-11 04:11:04 -0500 (Tue, 11 Nov 2008)
New Revision: 3211
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-11-10 13:43:49 UTC (rev 3210)
+++ branches/beck_dev/http/gazetteer_rostock/mod_WFSStreetGaz_client.js 2008-11-11 09:11:04 UTC (rev 3211)
@@ -46,14 +46,9 @@
eventGazResClickOV.trigger({
"targetArray":targetArray2
});
- } );
+ });
- $("<input type='submit'>").attr({"id":"button2","value":"ok"}).appendTo("#td_f");
- $("#button1").css({"position":"relative"});
- $("#button2").css({"position":"relative"});
- //default: buttons hidden
- $("#button1").css({"left":"-800"});
- $("#button2").css({"left":"-800"});
+ $("<input type='submit'>").attr({"id":"button2","value":"ok"}).appendTo("#td_f");
$("#button2").click( function() {
if(formSubmitted) {
return false;
@@ -61,24 +56,28 @@
eventGazResClickOV.trigger({
"targetArray":targetArray2
});
- } );
+ });
+
+ $('#button1').css({'visibility':'hidden'});
+ $('#button2').css({'visibility':'hidden'});
//text fields
$("<input type='text'>").attr({"id":"feld1","size":"22"}).appendTo("#td_b");
$("#feld1").mousedown( function() {
-// clearAll();
- $("#button1").css({"left":"0"});
- $("#button2").css({"left":"-800"});
+ clearAll();
+// $("#td_h").empty();
+ $("#button1").css({"visibility":"visible"});
+ $("#button2").css({"visibility":"hidden"});
$("#feld2").attr('disabled','true');
- clearStreet();
+// clearStreet();
} );
$("<input type='text'>").attr({"id":"feld2","size":"22"}).appendTo("#td_e");
$("#feld2").attr('disabled','true');
$("#feld2").mousedown( function() {
- clearStreet();
- $("#button1").css({"left":"-800"});
- $("#button2").css({"left":"0"});
+ clearStreet();
+ $("#button1").css({"visibility":"hidden"});
+ $("#button2").css({"visibility":"visible"});
} );
//hidden field for gemeindeschluessel
@@ -261,8 +260,8 @@
$("#td_h").empty();
propertyName2 = [];
searchValue2 = [];
- $("#button1").css({"left":"-800"});
- $("#button2").css({"left":"-800"});
+ $("#button1").css({"visibility":"hidden"});
+ $("#button2").css({"visibility":"hidden"});
}
function clearAll(){
@@ -271,8 +270,8 @@
$("#td_h").empty();
propertyName2 = [];
searchValue2 = [];
- $("#button1").css({"left":"-800"});
- $("#button2").css({"left":"-800"});
+ $("#button1").css({"visibility":"hidden"});
+ $("#button2").css({"visibility":"hidden"});
}
function normalize2(str){
@@ -295,8 +294,8 @@
function transferOrtResult(nextWfsUrl,resultFillNumber){
$("#feld1").attr({"value":""+resultFillNumber+""});
- $("#button1").css({"left":"-800"});
- $("#button2").css({"left":"0"});
+ $("#button1").css({"visibility":"hidden"});
+ $("#button2").css({"visibility":"visible"});
$("#feld2").attr('disabled','');
$("#feld2").focus();
$("#td_h").empty();
@@ -503,6 +502,8 @@
"offsetParam":offsetParamStr
});
+ clearStreet();
+
$(this).clone().attr({'id':'selected_street'}).prependTo('#td_h');
// $('#selected_street').css('color','inherit');
$('#selected_street').mouseover(function() {
@@ -614,6 +615,9 @@
else {
alert("No results.");
}
- formSubmitted = false;
+
+ formSubmitted = false;
+ $('#button1').css({'visibility':'hidden'});
+ $('#button2').css({'visibility':'hidden'});
});
}
More information about the Mapbender_commits
mailing list