Changeset 800775
- Timestamp:
- 11/08/2013 12:46:03 AM (12 years ago)
- Location:
- easy-faq-with-expanding-text
- Files:
-
- 15 added
- 3 edited
-
tags/3.2.3 (added)
-
tags/3.2.3/arrows.png (added)
-
tags/3.2.3/downarrow.png (added)
-
tags/3.2.3/faq.php (added)
-
tags/3.2.3/faq_checkbox.png (added)
-
tags/3.2.3/faq_heading.png (added)
-
tags/3.2.3/faq_title.png (added)
-
tags/3.2.3/faqmaker.js (added)
-
tags/3.2.3/faqstyle.css (added)
-
tags/3.2.3/minussign.png (added)
-
tags/3.2.3/none.png (added)
-
tags/3.2.3/plusminus.png (added)
-
tags/3.2.3/plussign.png (added)
-
tags/3.2.3/readme.txt (added)
-
tags/3.2.3/uparrow.png (added)
-
trunk/faq.php (modified) (1 diff)
-
trunk/faqmaker.js (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-faq-with-expanding-text/trunk/faq.php
r798955 r800775 3 3 Plugin Name: Easy FAQ with Expanding Text 4 4 Description: Easily create a Frequently Asked Questions page with answers that slide down when the questions are clicked. No need for a shortcode, HTML coding, or javascript tweaking. 5 Version: 3.2. 25 Version: 3.2.3 6 6 Author: bgentry 7 7 Author URI: http://bryangentry.us -
easy-faq-with-expanding-text/trunk/faqmaker.js
r798955 r800775 6 6 7 7 8 $( ' :header:not(h6)', this).each(function(){ // select all the heading in .bg_faq_content_section other than h68 $(this).children(' :header:not(h6)').each(function(){ // select all the heading in .bg_faq_content_section other than h6 9 9 $(this).addClass('bg_faq_closed'); //make these heading "closed" 10 10 $(this).attr('data-foldupq', foldup); … … 21 21 foldup = $(this).attr('data-foldupq'); 22 22 //whenever one of these headings is clicked, 23 if($(this).hasClass('bg_faq_opened')) { //check to see if it's opened. If so,... 23 if($(this).hasClass('bg_faq_opened')) { 24 25 //check to see if it's opened. If so,... 24 26 $(this).nextUntil(':header').slideUp(); //slide up the content beneath it and mark this heading "closed" 25 27 $(this).removeClass('bg_faq_opened').addClass('bg_faq_closed'); … … 27 29 else { //if it isn't opened, 28 30 if(foldup=='yes') { //check to see we are supposed to fold up other content so only one answer shows at a time. 29 $(this).parent('.bg_faq_content_section').find('.bg_faq_opened'). each(function(){ //if so...31 $(this).parent('.bg_faq_content_section').find('.bg_faq_opened').not(this).each(function(){ //if so... 30 32 $(this).nextUntil(':header').slideUp(); //foldup other content and mark the headings as closed 31 33 $(this).removeClass('bg_faq_opened').addClass('bg_faq_closed'); -
easy-faq-with-expanding-text/trunk/readme.txt
r798955 r800775 4 4 Tags: faq pages 5 5 Tested up to: 3.7.1 6 Stable tag: 3.2. 26 Stable tag: 3.2.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 23 23 24 24 == Changelog == 25 26 =3.2.3 = 27 * Fixed the ability to have each page or post individually control whether it will have just one answer open at a time. 28 * Updated javascript to improve the nested drop down feature 25 29 26 30 = 3.2.2 =
Note: See TracChangeset
for help on using the changeset viewer.