X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9d5514886a53c29c44b7541264bed7564c3fb978..da80eb32dd2158bc959a15db82002e58628d8a32:/js/switchmenuframe.js 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; }