From 3411f1b9944fc3e9ef79db09fab68a65c0641d3e Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Thu, 15 Nov 2007 12:21:09 +0000 Subject: [PATCH] merged from 1.9 :: MDL-12191 :: workaround with JavaScript to add "haslayouttabel" class to body. --- theme/custom_corners/js/jquery.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/theme/custom_corners/js/jquery.php b/theme/custom_corners/js/jquery.php index 613ea1ede3..8aa9d378a9 100644 --- a/theme/custom_corners/js/jquery.php +++ b/theme/custom_corners/js/jquery.php @@ -14,6 +14,15 @@ $('div.bb div,div.bt div').css('left','13px'); } } + + // check for layouttabel and add haslayouttable class to body + // remove nocoursepage class from body + var layoutTable = $('#layout-table'); + + if (layoutTable.length) { + $('body').addClass('haslayouttable'); + $('body').removeClass('nocoursepage'); + } }, info: function() { -- 2.39.5