Drupal Greybox And Internet Explorer

    Used on several projects the greybox module for the popup. And below I want to give one problem, which caused me a lot of trouble in Internet Explorer.

    There is a line in the GB_show function. It removes the scroll from the body and is fine. Only in IE does this not work. It remains to scroll and after scrolling the wheel and turning off the window, there remains a part of the layers that the module creates and prevents itself from using the site, although by itself it is invisible. You just can’t click on links and on any elements on the page. I studied a lot of literature, forums, and articles about circumventing this shortcoming and decided that the easiest way would be to add below And, accordingly, in the GB_hide function

    $('body').css('overflow', 'hidden');




    window.document.body.scroll = 'no';




    window.document.body.scroll = 'auto';

    Also popular now: