diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-12 15:22:48 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-12 18:47:53 +0100 |
commit | 5450fba4fbdb735d229a7c916671646fd67d26ba (patch) | |
tree | 3876fd07ff08b4f8290afb982b34da890658ab53 | |
parent | 319ef51e2a050b54ff5ce87cde7216b255e079fb (diff) |
make multiple match list into a listview. Fixes #452
-rw-r--r-- | www/css/fms.css | 2 | ||||
-rw-r--r-- | www/js/views/search.js | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/www/css/fms.css b/www/css/fms.css index 8d7d1b6..bbc9fdc 100644 --- a/www/css/fms.css +++ b/www/css/fms.css @@ -304,7 +304,7 @@ #map{ opacity: 0.85; } - + ::-webkit-input-placeholder { /* WebKit browsers */ color: #777; } diff --git a/www/js/views/search.js b/www/js/views/search.js index 9e0a4ca..6930e2a 100644 --- a/www/js/views/search.js +++ b/www/js/views/search.js @@ -60,7 +60,8 @@ var li = '<li><a class="address" id="location_' + i + '" data-lat="' + loc.lat + '" data-long="' + loc.long + '">' + loc.address + '</a></li>'; multiple = multiple + li; } - $('#front-howto').html('<p>Multiple matches found</p><ul>' + multiple + '</ul>'); + $('#front-howto').html('<p>Multiple matches found</p><ul data-role="listview" data-inset="true">' + multiple + '</ul>'); + $('.ui-page').trigger('create'); } else { this.validationError( 'pc', FMS.strings.location_problem ); } |