minor bugs in dyntabmenu fixed (missing highlight after click in regular tabmenu...
authorChristian Jul Jensen <christian.jensen@typo3.org>
Thu, 13 Jan 2005 13:31:19 +0000 (13:31 +0000)
committerChristian Jul Jensen <christian.jensen@typo3.org>
Thu, 13 Jan 2005 13:31:19 +0000 (13:31 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@529 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/stylesheet.css
typo3/template.php

index 58d432b..443c324 100755 (executable)
@@ -197,12 +197,12 @@ TABLE.typo3-dyntabmenu TD A { color:grey; text-decoration:none; display: block;
 TABLE.typo3-dyntabmenu TD.tabact A, TABLE.typo3-dyntabmenu TD.tab_over A { color:#000;}
 
 DIV.typo3-dyntabmenu-divs-foldout DIV.c-tablayer {margin-left: 20px;}
-DIV.typo3-dyntabmenu-divs-foldout DIV.tab { background: #c4d4cd;  background-image: url(gfx/ol/plusbullet.gif); background-repeat: no-repeat; border: solid black 1px; border-radius: 3px; -moz-border-radius: 3px;}
-DIV.typo3-dyntabmenu-divs-foldout DIV.tab_over {background: #f6eab7; background-image: url(gfx/ol/arrowbullet.gif); background-repeat: no-repeat; border: solid black 1px; border-radius: 3px; -moz-border-radius: 3px;}
+DIV.typo3-dyntabmenu-divs-foldout DIV.tab { background: #c4d4cd;  background-image: url(gfx/ol/plusbullet.gif); background-repeat: no-repeat; border: solid black 1px; margin-top: 5px; border-radius: 3px; -moz-border-radius: 3px;}
+DIV.typo3-dyntabmenu-divs-foldout DIV.tab_over {background: #f6eab7; background-image: url(gfx/ol/arrowbullet.gif); background-repeat: no-repeat; border: solid black 1px; margin-top: 5px; border-radius: 3px; -moz-border-radius: 3px;}
 DIV.typo3-dyntabmenu-divs-foldout DIV.tabact {  background: #e7dba8; background-image: url(gfx/ol/minusbullet.gif); background-repeat: no-repeat; border: solid black 1px;  margin-top: 5px; border-radius: 3px; -moz-border-radius: 3px;}
 DIV.typo3-dyntabmenu-divs-foldout DIV.tabact_over { background: #f6eab7; background-image: url(gfx/ol/arrowbullet.gif); background-repeat: no-repeat; border: solid black 1px;  margin-top: 5px; border-radius: 3px; -moz-border-radius: 3px;}
-DIV.typo3-dyntabmenu-divs-foldout DIV.disabled { color:#999999; border: solid black 1px; background: #cccccc;  padding: 2px 2px 2px 18px; border-radius: 3px; -moz-border-radius: 3px;}
-DIV.typo3-dyntabmenu-divs-foldout DIV.disabled_over { color:#999999; border: solid black 1px; background: #f6eab7;  padding: 2px 2px 2px 18px; border-radius: 3px; -moz-border-radius: 3px;}
+DIV.typo3-dyntabmenu-divs-foldout DIV.disabled { color:#999999; border: solid black 1px; background: #cccccc;  padding: 2px 2px 2px 18px; margin-top: 5px; border-radius: 3px; -moz-border-radius: 3px;}
+DIV.typo3-dyntabmenu-divs-foldout DIV.disabled_over { color:#999999; border: solid black 1px; background: #f6eab7;  padding: 2px 2px 2px 18px; margin-top: 5px; border-radius: 3px; -moz-border-radius: 3px;}
 DIV.typo3-dyntabmenu-divs-foldout DIV.tab A, DIV.typo3-dyntabmenu-divs-foldout DIV.tabact A, DIV.typo3-dyntabmenu-divs-foldout DIV.tab_over A,DIV.typo3-dyntabmenu-divs-foldout DIV.tabact_over A { text-decoration:none; display: block; padding: 2px 2px 2px 18px;border-radius: 3px; -moz-border-radius: 3px;}
 
 
index 27fa980..cb6f2ae 100755 (executable)
@@ -1651,11 +1651,19 @@ $str.=$this->docBodyTagBegin().
                                        if (document.getElementById(idBase+"-"+index+"-DIV"))   {
                                                if (doToogle && document.getElementById(idBase+"-"+index+"-DIV").style.display == "block")      {
                                                        document.getElementById(idBase+"-"+index+"-DIV").style.display = "none";
-                                                       document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "tab";
+                                                       if(DTM_origClass=="") {
+                                                               document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "tab";
+                                                       } else {
+                                                               DTM_origClass = "tab";
+                                                       }
                                                        top.DTM_currentTabs[idBase] = -1;
                                                } else {
                                                        document.getElementById(idBase+"-"+index+"-DIV").style.display = "block";
-                                                       document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "tabact";
+                                                       if(DTM_origClass=="") {
+                                                               document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "tabact";
+                                                       } else {
+                                                               DTM_origClass = "tabact";
+                                                       }
                                                        top.DTM_currentTabs[idBase] = index;
                                                }
                                        }