Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using Modernizr.mq() breaks e.g. IE form display due to adding to <bo…

…dy> I assume. Use the mobile class instead.
  • Loading branch information...
commit 2f71ffb4e740f5478967ee1b633c65e4ffd31d80 1 parent 5342e1d
@dracos dracos authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 web/cobrands/fixmystreet/fixmystreet.js
View
8 web/cobrands/fixmystreet/fixmystreet.js
@@ -531,24 +531,18 @@ $.fn.drawer = function(id, ajax) {
'overlayColor': '#000000'
});
-
-
-
-
-
/*
* heightfix the desktop .content div
*
* this must be kept near the end so that the
* rendered height is used after any page manipulation (such as tabs)
*/
- if(Modernizr.mq('only screen and (min-width:48em)')) {
+ if (!$('html.mobile').length) {
if (!($('body').hasClass('frontpage'))){
heightFix(window, '.content', -176);
}
}
-
/*
* Placeholder polyfill from https://github.com/mathiasbynens/jquery-placeholder/
*
Please sign in to comment.
Something went wrong with that request. Please try again.