X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Fmenu-common.js;h=0464221427f00cd46e689a34af7ebadff5022c37;hb=d537c9f6acdd0794c824777c765fab579ba88270;hp=76146fdb7fb71edd7d6cb11af5c539e387202fd5;hpb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;p=mailer.git diff --git a/js/menu-common.js b/js/menu-common.js index 76146fdb7f..0464221427 100644 --- a/js/menu-common.js +++ b/js/menu-common.js @@ -1,13 +1,13 @@ -/* +/** * JavaScript for folding/unfolding menus * -------------------------------------------------------------------- - * $Revision:: $ - * $Date:: $ - * $Tag:: 0.2.1-FINAL$ - * $Author:: $ + * $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 - 2012 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 +27,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 +49,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 {