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 /www/js | |
parent | 319ef51e2a050b54ff5ce87cde7216b255e079fb (diff) |
make multiple match list into a listview. Fixes #452
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/search.js | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); } |