diff --git a/theme/custom_corners/js/jquery.php b/theme/custom_corners/js/jquery.php
index <HASH>..<HASH> 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() {
merged from <I> :: MDL-<I> :: workaround with JavaScript to add "haslayouttabel" class to body.