X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Fmenu-common.js;h=5522c5e2f6f651a73ee80325c7fdb59443bfa7fd;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hp=76146fdb7fb71edd7d6cb11af5c539e387202fd5;hpb=ee3a0b42f93de7676fca549c866c1c2e6f3f0576;p=mailer.git diff --git a/js/menu-common.js b/js/menu-common.js index 76146fdb7f..5522c5e2f6 100644 --- a/js/menu-common.js +++ b/js/menu-common.js @@ -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 - 2015 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 {