liquid_feedback_frontend
diff env/ui/tabs.lua @ 113:e0b091e2a0f3
setting <title> tag. fallback: take class="title"-contents
author | jorges |
---|---|
date | Mon Sep 20 01:18:03 2010 +0200 (2010-09-20) |
parents | 29519f2f9929 |
children | fecd4c13054a |
line diff
1.1 --- a/env/ui/tabs.lua Sun Sep 19 16:00:38 2010 +0200 1.2 +++ b/env/ui/tabs.lua Mon Sep 20 01:18:03 2010 +0200 1.3 @@ -26,6 +26,10 @@ 1.4 end 1.5 end 1.6 1.7 + if active and not first then 1.8 + app.html_title.prefix = tab.label 1.9 + end 1.10 + 1.11 local link_tabs = {} 1.12 if config.user_tab_mode == "accordeon" 1.13 or config.user_tab_mode == "accordeon_first_expanded" 1.14 @@ -209,6 +213,9 @@ 1.15 end 1.16 } 1.17 for i, tab in ipairs(tabs) do 1.18 + if tab.name == current_tab and i > 1 then 1.19 + app.html_title.prefix = tab.label 1.20 + end 1.21 if tab.name == current_tab or not current_tab and i == 1 then 1.22 ui.container{ 1.23 attr = { class = "ui_tabs_content" },