diff --git a/Products/Faq/skins/faq/faqfolder_view.pt b/Products/Faq/skins/faq/faqfolder_view.pt index b0bea19..a39fc3c 100644 --- a/Products/Faq/skins/faq/faqfolder_view.pt +++ b/Products/Faq/skins/faq/faqfolder_view.pt @@ -30,20 +30,9 @@ } function toggle_all(faq_items) { - for(var i = 1; i <= faq_items; i++) { - el = document.getElementById("faq_" + i); - icon = document.getElementById("icon_" + i); - if (el) { - if (faq_displayAll) { - el.style.display = "none"; - icon.src = "treeCollapsed.gif"; - } else { - el.style.display = "block"; - icon.src = "treeExpanded.gif"; - } - } - } - faq_displayAll = (faq_displayAll ? 0 : 1); + + $('.faq_answer').toggle(); + } function overLinkStyle(link_id) { @@ -126,20 +115,26 @@
+ it repeat/subentry/index; + item python:int(it)"> + + onmouseover string:javascript:overLinkStyle('icon_${item}_${subentry/aq_parent/id}'); + onmouseout string:javascript:outLinkStyle('icon_${item}')_${subentry/aq_parent/id}" /> Icon new - Title + Title
+
Question
-
Answer
+ +
Answer
+
diff --git a/docs/HISTORY.txt b/docs/HISTORY.txt index 1a6e82d..b063c77 100644 --- a/docs/HISTORY.txt +++ b/docs/HISTORY.txt @@ -4,7 +4,7 @@ Changelog 1.4 (unreleased) ---------------- -- Nothing changed yet. +- fix id's so faq works fine with subfolders [tamosauskas] 1.3.2 (2013-08-26)