X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Fmenu-common.js;h=0464221427f00cd46e689a34af7ebadff5022c37;hb=d537c9f6acdd0794c824777c765fab579ba88270;hp=d469daf17197ec92325bc42b0dc545a74f2e91b3;hpb=33d0dd57d524695bf40c095be705627a2e65337a;p=mailer.git diff --git a/js/menu-common.js b/js/menu-common.js index d469daf171..0464221427 100644 --- a/js/menu-common.js +++ b/js/menu-common.js @@ -1,4 +1,4 @@ -/* +/** * JavaScript for folding/unfolding menus * -------------------------------------------------------------------- * $Revision:: $ @@ -7,7 +7,7 @@ * $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 {