]> git.mxchange.org Git - mailer.git/blobdiff - js/menu-common.js
also prevent it in .htacces. You may want to add this to one of your files in /etc...
[mailer.git] / js / menu-common.js
index d469daf17197ec92325bc42b0dc545a74f2e91b3..122f3e55b087d7ed0143f2776cc94db2c53155ff 100644 (file)
@@ -1,13 +1,8 @@
-/*
+/**
  * JavaScript for folding/unfolding menus
  * --------------------------------------------------------------------
- * $Revision::                                                        $
- * $Date::                                                            $
- * $Tag:: 0.2.1-FINAL                                                 $
- * $Author::                                                          $
- * --------------------------------------------------------------------
  * Copyright (c) 2003 - 2009 by Roland Haeder
- * Copyright (c) 2009 - 2011 by Mailer Developer Team
+ * Copyright (c) 2009 - 2016 by Mailer Developer Team
  * For more information visit: http://mxchange.org
  *
  * This program is free software; you can redistribute it and/or modify
@@ -27,8 +22,8 @@
  */
 
 // Init variables
-var menuStates = [];
-var id = null;
+var menuStates = new Array();
+var id         = null;
 
 /**
  * Function to fold all menus and unfold current (mainAction) one
@@ -49,7 +44,7 @@ function changeMenuFoldState (mode, currentAction, action, what) {
        var current = document.getElementById(id);
 
        // Is it displayed?
-       if (menuStates[id] == true) {
+       if (menuStates[id] === true) {
                // Then hide it
                hideMenu(current, id);
        } else {