Changeset:
        49e5eab7878b
        
https://sourceforge.net/p/mrbs/hg-code/ci/49e5eab7878b544cd48405f00c351abae0b607ec
Author:
        Campbell Morrison <[email protected]>
Date:
        Sun Oct 02 15:38:29 2016 +0100
Log message:

Removed some JavaScript from the simple header

diffstat:

 web/Themes/default/header.inc |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 935236324e75 -r 49e5eab7878b web/Themes/default/header.inc
--- a/web/Themes/default/header.inc     Sun Oct 02 15:29:57 2016 +0100
+++ b/web/Themes/default/header.inc     Sun Oct 02 15:38:29 2016 +0100
@@ -243,17 +243,20 @@
   // (Use a class rather than id to avoid specificity problems)
   echo "<body class=\"non_js ".htmlspecialchars($page)."\">\n";
    
+  if (!$simple)
+  {
     // Add a class of "js" so that we know if we're using JavaScript or not
     // and remove the non_js class (it's sometimes useful to know that we're
     // not running JavaScript)
-  ?>
+    ?>
     <script type="text/javascript">
       //<![CDATA[
       $('body').addClass('js').removeClass('non_js');
       //]]>
     </script> 
-
-  <?php
+    <?php
+  }
+  
   if (!empty($locale_warning))
   {
     echo "[Warning: ".$locale_warning."]";

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to