[OpenLayers-Commits] r11291 -
sandbox/camptocamp/mobile/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 23 05:27:33 EST 2011
Author: pgiraud
Date: 2011-02-23 02:27:33 -0800 (Wed, 23 Feb 2011)
New Revision: 11291
Modified:
sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.html
Log:
Using a search input
Modified: sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.html
===================================================================
--- sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.html 2011-02-23 10:20:20 UTC (rev 11290)
+++ sandbox/camptocamp/mobile/openlayers/examples/mobile-jq.html 2011-02-23 10:27:33 UTC (rev 11291)
@@ -89,7 +89,7 @@
$("#locate").click(function(){
map.getControlsBy("id", "locate-control")[0].activate();
});
- $('#query').keydown(function(e){
+ $('#query').keyup(function(e){
if (e.which === 13) { // enter
$.mobile.pageLoading();
@@ -167,7 +167,7 @@
<div data-role="header">
<h1>Search</h1>
<div data-role="fieldcontain">
- <input type="text" name="query" id="query"
+ <input type="search" name="query" id="query"
value="" placeholder="Search for places"
autocomplete="off"/>
</div>
More information about the Commits
mailing list