aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js27
1 files changed, 13 insertions, 14 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index c035fe32a..490f7f134 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -75,23 +75,24 @@ function tabs(elem)
$(function(){
+ $('html').removeClass('no-js').addClass('js');
+
//add mobile class if small screen
if(Modernizr.mq('only screen and (max-width:48em)')) {
$('html').addClass('mobile');
} else {
-
- // Make map full screen on non-mobile sizes.
- // temp: exclude ie6 as it doesn't like the height part of this
- if(!$('html').hasClass('ie6')){
- $('#map_box').prependTo('.wrapper').css({
- zIndex: 0, position: 'fixed',
- top: 0, left: 0, right: 0, bottom: 0,
- width: '100%', height: '100%',
- margin: 0
- }).data('size', 'full');
- }
-
+ // Make map full screen on non-mobile sizes.
+ // temp: exclude ie6 as it doesn't like the height part of this
+ if(!$('html').hasClass('ie6')){
+ $('#map_box').prependTo('.wrapper').css({
+ zIndex: 0, position: 'fixed',
+ top: 0, left: 0, right: 0, bottom: 0,
+ width: '100%', height: '100%',
+ margin: 0
+ }).data('size', 'full');
+ }
}
+
//heightfix the desktop .content div
if(Modernizr.mq('only screen and (min-width:48em)')) {
if (!($('body').hasClass('frontpage'))){
@@ -99,8 +100,6 @@ $(function(){
}
}
- $('html').removeClass('no-js').addClass('js');
-
$('#pc').focus();
$('input[type=submit]').removeAttr('disabled');