]> git.mjollnir.org Git - moodle.git/commitdiff
merged from 1.9 :: MDL-12191 :: workaround with JavaScript to add "haslayouttabel...
authorurs_hunkler <urs_hunkler>
Thu, 15 Nov 2007 12:21:09 +0000 (12:21 +0000)
committerurs_hunkler <urs_hunkler>
Thu, 15 Nov 2007 12:21:09 +0000 (12:21 +0000)
theme/custom_corners/js/jquery.php

index 613ea1ede3d29936496e99a07103f652e43af616..8aa9d378a9b23eefd6579251616882b6b65af7a8 100644 (file)
                     $('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() {