X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fswitchmenuframe.js;h=d0bf2ac2d4ff6ac2428c085d2833b25c8c4c7f43;hb=38ef906377d48f5bce5c2df79d3dd2dea2accb38;hp=0399a2ebe3a0b2c289c878bc34d4078b7ac5d86c;hpb=6c7e41458d2027f72901d16417a37648942f7445;p=kivitendo-erp.git diff --git a/js/switchmenuframe.js b/js/switchmenuframe.js index 0399a2ebe..d0bf2ac2d 100644 --- a/js/switchmenuframe.js +++ b/js/switchmenuframe.js @@ -1,20 +1,20 @@ -/* This is used in bin/mozilla/kopf.pl to switch the HTML sidemenu on/off +/* This is used in bin/mozilla/kopf.pl to switch the HTML side menu on/off 2010, Sven Donath, lxo@dexo.de */ var vSwitch_Menu = 1; +var FrameSize = (parent.document.getElementById('menuframe').cols); -function Switch_Menu(framesize) +function Switch_Menu() { - if (vSwitch_Menu) - { - vSwitch_Menu=false; - parent.document.getElementById('menuframe').setAttribute('cols','30,*') - } - else - { - vSwitch_Menu=true; - framesize = framesize + ',*'; - parent.document.getElementById('menuframe').setAttribute('cols',framesize); + if (vSwitch_Menu) + { + vSwitch_Menu=false; + parent.document.getElementById('menuframe').setAttribute('cols','30,*'); } - return; + else + { + vSwitch_Menu=true; + parent.document.getElementById('menuframe').setAttribute('cols',FrameSize); + } + return; }