From: urs_hunkler Date: Thu, 15 Nov 2007 12:21:09 +0000 (+0000) Subject: merged from 1.9 :: MDL-12191 :: workaround with JavaScript to add "haslayouttabel... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3411f1b9944fc3e9ef79db09fab68a65c0641d3e;p=moodle.git merged from 1.9 :: MDL-12191 :: workaround with JavaScript to add "haslayouttabel" class to body. --- 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() {