aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-08-06 13:58:29 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-08-06 13:58:29 +0000
commite90083304147e3c1b9278c6e875278f2eb7dd4de (patch)
tree3723519a949cfc626352c5e134e6e7668925f7f2 /h-source/Application
parenta1081ade5d21fc9598b94e40b60c35cf9d95f855 (diff)
improved the way tabs are displayed inside the description entry
Diffstat (limited to 'h-source/Application')
-rw-r--r--h-source/Application/Include/myFunctions.php10
-rw-r--r--h-source/Application/Views/header.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/h-source/Application/Include/myFunctions.php b/h-source/Application/Include/myFunctions.php
index 5603c97..385923a 100644
--- a/h-source/Application/Include/myFunctions.php
+++ b/h-source/Application/Include/myFunctions.php
@@ -278,8 +278,8 @@ function decodeWikiText($string)
function createTabs($match)
{
$label = Lang::getLabel($match[3]);
- Tabs::$tabList[] = "<li><a href='#".$label."'>".$label."</a></li>\n";
- Tabs::$htmlList[] = "<div id='".$label."'>".$match[5]."</div>\n";
+ Tabs::$tabList[] = "<li class='desc_tabs'><a href='#".$label."'>".$label."</a></li>\n";
+ Tabs::$htmlList[] = "<div class='description_tabs_page' id='".$label."'>".$match[5]."</div>\n";
return null;
}
@@ -295,17 +295,17 @@ class Tabs
if (count(self::$tabList) > 0)
{
$html .= "<div id='description_tabs'>\n";
- $html .= "<ul>\n";
+ $html .= "<ul class='desc_menu'>\n";
foreach (self::$tabList as $label)
{
$html .= $label;
}
- $html .= "</ul>\n";
+ $html .= "</ul>\n<div id='description_tabs_content'>\n";
foreach (self::$htmlList as $content)
{
$html .= $content;
}
- $html .= "</div>";
+ $html .= "</div>\n</div>\n";
}
return $html;
}
diff --git a/h-source/Application/Views/header.php b/h-source/Application/Views/header.php
index d8cbcbb..af2db37 100644
--- a/h-source/Application/Views/header.php
+++ b/h-source/Application/Views/header.php
@@ -65,7 +65,7 @@ $currPos = $querySanitized ? $this->controller."/".$this->action : 'home/index';
$(document).ready(function() {
// $(function() {
- $( "#description_tabs" ).tabs();
+// $( "#description_tabs" ).tabs();
// });
});