X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fmenunew.pl;h=9f88f0b7ee41cb3d11f3037ee1462ec31119ef9a;hb=8e58d69a5a65f4887c7722dfae72a658b883eeec;hp=64a1f58333a3f13bce59d1f7fb05520eea430fbc;hpb=62b026b8af03542b3d1c83519939588f7c8f7276;p=kivitendo-erp.git diff --git a/bin/mozilla/menunew.pl b/bin/mozilla/menunew.pl index 64a1f5833..9f88f0b7e 100644 --- a/bin/mozilla/menunew.pl +++ b/bin/mozilla/menunew.pl @@ -52,7 +52,7 @@ sub display { &acc_menu; print qq| - @@ -152,9 +152,7 @@ function clockon() {
| - . $login - . $datum - . qq|   + . $login . $datum . qq|  
@@ -177,6 +175,8 @@ sub acc_menu { var isDOM = (document.getElementById ? true : false); var isIE4 = ((document.all && !isDOM) ? true : false); var isNS4 = (document.layers ? true : false); +//var KO = (navigator.appName=="Konqueror" \|\| navigator.appName=="Opera") ; +var KO = ((navigator.userAgent.indexOf('Opera',0) != -1) \|\| (navigator.userAgent.indexOf('Konqueror',0) != -1)); function getRef(id) { if (isDOM) return document.getElementById(id); if (isIE4) return document.all[id]; @@ -188,6 +188,7 @@ function getSty(id) { var popTimer = 0; var litNow = new Array(); function popOver(menuNum, itemNum) { + if (KO) document.getElementById("win1").style.visibility = "hidden"; clearTimeout(popTimer); hideAllBut(menuNum); litNow = getTree(menuNum, itemNum); @@ -206,6 +207,7 @@ function popOver(menuNum, itemNum) { function popOut(menuNum, itemNum) { if ((menuNum == 0) && !menu[menuNum][itemNum].target) hideAllBut(0) + if (KO) document.getElementById("win1").style.visibility = "visible"; else popTimer = setTimeout('hideAllBut(0)', 500); } @@ -236,6 +238,7 @@ function hideAllBut(menuNum) { menu[count][0].ref.visibility = 'hidden'; changeCol(litNow, false); } + function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) { this.isVert = isVert; this.popInd = popInd @@ -336,6 +339,7 @@ document.onclick = clickHandle; function clickHandle(evt) { if (isNS4) document.routeEvent(evt); hideAllBut(0); + if (KO) document.getElementById("win1").style.visibility = "visible"; } function moveRoot() { with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5); @@ -424,7 +428,7 @@ sub section_menu { qq|menu[0][$mm] = new Item(' $label', '#', '', $breit, 10, $pm); \n|; print qq|menu[$pm] = new Array();\n|; print - qq|menu[$pm][0] = new Menu(true, '>', 0, 22, 180, defOver, defBack, 'itemBorder', 'itemText');\n|; + qq|menu[$pm][0] = new Menu(true, '>', 0, 20, 180, defOver, defBack, 'itemBorder', 'itemText');\n|; #print qq| $label    \n|; §ion_menu($menu, $item);