aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-06 16:53:46 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-06 16:53:46 +0100
commit581be21f71cb952436cb36380eac9c5f94126e88 (patch)
tree8ad21b88f1eea07b89903e0404ed7452f89685cb
parent97062e0d6f6d56b3d36ccc6270f37661c6ebc9d0 (diff)
only hide search errors if there is a map
Otherwise when the inital search fails bluring the search box removes the errors which doesn't seem very helpful
-rw-r--r--src/js/views/around.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/views/around.js b/src/js/views/around.js
index 501c371..5a5e590 100644
--- a/src/js/views/around.js
+++ b/src/js/views/around.js
@@ -346,8 +346,10 @@
clearSearchErrors: function() {
$('#pc').attr('placeholder', this.origPcPlaceholder).removeClass('error');;
- $('#front-howto').hide();
- $('#relocate').show();
+ if ( fixmystreet.map ) {
+ $('#front-howto').hide();
+ $('#relocate').show();
+ }
},
searchFail: function( details ) {