Skip to content

Commit

Permalink
Using Modernizr.mq() breaks e.g. IE form display due to adding to <bo…
Browse files Browse the repository at this point in the history
…dy> I assume. Use the mobile class instead.
  • Loading branch information
dracos committed Mar 14, 2012
1 parent 5342e1d commit 2f71ffb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions web/cobrands/fixmystreet/fixmystreet.js
Expand Up @@ -531,24 +531,18 @@ $.fn.drawer = function(id, ajax) {
'overlayColor': '#000000' 'overlayColor': '#000000'
}); });







/* /*
* heightfix the desktop .content div * heightfix the desktop .content div
* *
* this must be kept near the end so that the * this must be kept near the end so that the
* rendered height is used after any page manipulation (such as tabs) * 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'))){ if (!($('body').hasClass('frontpage'))){
heightFix(window, '.content', -176); heightFix(window, '.content', -176);
} }
} }



/* /*
* Placeholder polyfill from https://github.com/mathiasbynens/jquery-placeholder/ * Placeholder polyfill from https://github.com/mathiasbynens/jquery-placeholder/
* *
Expand Down

0 comments on commit 2f71ffb

Please sign in to comment.