aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/fixmystreet.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/www/js/fixmystreet.js b/www/js/fixmystreet.js
index ce79214..c0fe437 100644
--- a/www/js/fixmystreet.js
+++ b/www/js/fixmystreet.js
@@ -89,10 +89,16 @@ $(function(){
var last_type;
$(window).resize(function(){
var type = $('#site-header').css('borderTopWidth');
- if (type == '4px') { type = 'mobile'; }
- else if (type == '0px') { type = 'desktop'; }
- else { return; }
- if (last_type == type) { return; }
+ if (type == '4px') {
+ type = 'mobile';
+ } else if (type == '0px') {
+ type = 'desktop'; }
+ else {
+ return;
+ }
+ if (last_type == type) {
+ return;
+ }
if (type == 'mobile') {
$html.addClass('mobile');
$('#map_box').prependTo('.content').css({