BUGFIX: Don't cut off document.body overflow in CTF popups in the admin, when on test mode. (from r88958)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96790 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-13 00:00:01 +00:00
parent 2cf10e76fe
commit 7ac2203319

View File

@ -213,8 +213,12 @@ window.onresize = function(init) {
} }
appendLoader(function() { appendLoader(function() {
document.body.style.overflow = 'hidden'; // Only execute this code if it's actually called from the LeftAndMain interface
window.onresize(true); // JSMin/concatenation can get this file included in strange places
if(document.getElementById('left') && document.getElementById('right')) {
document.body.style.overflow = 'hidden';
window.onresize(true);
}
}); });
function isVisible(el) { function isVisible(el) {