From 3941cc43f12c5a6cf9b7fc9889b4048ed72ee577 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Thu, 15 Nov 2007 12:06:34 +0000 Subject: [PATCH] MDL-12191 :: workaround with JavaScript to add MDL-12191"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 613ea1ede3d..8aa9d378a9b 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() {