Plugin Directory

Changeset 800775


Ignore:
Timestamp:
11/08/2013 12:46:03 AM (12 years ago)
Author:
bgentry
Message:

fixed a couple of things with the "one answer open at a time" feature

Location:
easy-faq-with-expanding-text
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • easy-faq-with-expanding-text/trunk/faq.php

    r798955 r800775  
    33Plugin Name: Easy FAQ with Expanding Text
    44Description: 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.2
     5Version: 3.2.3
    66Author: bgentry
    77Author URI: http://bryangentry.us
  • easy-faq-with-expanding-text/trunk/faqmaker.js

    r798955 r800775  
    66       
    77       
    8         $(' :header:not(h6)', this).each(function(){ // select all the heading in .bg_faq_content_section other than h6
     8        $(this).children(' :header:not(h6)').each(function(){ // select all the heading in .bg_faq_content_section other than h6
    99            $(this).addClass('bg_faq_closed');                  //make these heading "closed"
    1010            $(this).attr('data-foldupq', foldup);
     
    2121                foldup = $(this).attr('data-foldupq');
    2222                                                                        //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,...
    2426                $(this).nextUntil(':header').slideUp();         //slide up the content beneath it and mark this heading "closed"
    2527                $(this).removeClass('bg_faq_opened').addClass('bg_faq_closed');
     
    2729        else {                                                          //if it isn't opened,
    2830        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...
    3032                $(this).nextUntil(':header').slideUp();         //foldup other content and mark the headings as closed
    3133                $(this).removeClass('bg_faq_opened').addClass('bg_faq_closed');
  • easy-faq-with-expanding-text/trunk/readme.txt

    r798955 r800775  
    44Tags: faq pages
    55Tested up to: 3.7.1
    6 Stable tag: 3.2.2
     6Stable tag: 3.2.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323
    2424== 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
    2529
    2630= 3.2.2 =
Note: See TracChangeset for help on using the changeset viewer.