* adjust style for every browser.

This commit is contained in:
wangyidong
2012-03-02 05:45:14 +00:00
parent 0b726c8b7d
commit 2232a46cf8
6 changed files with 43 additions and 41 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ class commonModel extends model
if(common::hasPriv($module, $method))
{
/* Is the currentModule active? */
if($currentModule == $subModule) $active = 'active';
if($currentModule == $subModule and $float != 'right') $active = 'active';
if($module == $currentModule and ($method == $currentMethod or strpos($alias, $currentMethod) !== false) and $float != 'right') $active = 'active';
echo "<li class='$float $active'>" . html::a(helper::createLink($module, $method, $vars), $label, $target, "id=submenu$subMenuKey") . "</li>\n";
}