aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-10-03 10:07:17 +0100
committerStruan Donald <struan@exo.org.uk>2013-10-03 10:07:17 +0100
commit6472a9fe27e10a952105e680a29714b330699e90 (patch)
tree02750d3ce4f2ed8b7b231d0bb23474aa6291876d
parent78162a63dbd43a1da760258db372a911e8b1d418 (diff)
Do not focus on search box on first load
The cursor shows through the help overlay
-rw-r--r--src/js/views/around.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/views/around.js b/src/js/views/around.js
index fff6908..57b4bc6 100644
--- a/src/js/views/around.js
+++ b/src/js/views/around.js
@@ -184,7 +184,11 @@
if ( !fixmystreet.map ) {
$('#relocate').hide();
$('#mark-here').hide();
- $('#pc').attr('placeholder', FMS.strings.search_placeholder).focus();
+ // if we are going to display the help then we don't want to focus on
+ // the search box as it will show through the help
+ if ( FMS.usedBefore ) {
+ $('#pc').attr('placeholder', FMS.strings.search_placeholder).focus();
+ }
}
$('#front-howto').html('<p>' + msg + '</p>');
$('#front-howto').show();