Bug Tracker

Changeset 4451

Show
Ignore:
Timestamp:
01/14/08 21:59:36 (1 year ago)
Author:
joern.zaefferer
Message:

don't return false when non-header elements are clicked (or whatever event is used

Location:
trunk/plugins/accordion
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/accordion/demo/index.html

    r4137 r4451  
    290290                    <p> 
    291291                        Well, apart from the running part. 
     292                        <a href="#navigation">Navigation example</a> 
    292293                    </p> 
    293294                </div> 
  • trunk/plugins/accordion/jquery.accordion.js

    r4424 r4451  
    197197             
    198198            // if animations are still active, or the active header is the target, ignore click 
    199             if(running || (settings.alwaysOpen && clickedActive) || !clicked.is(settings.header)) 
     199            if (running || (settings.alwaysOpen && clickedActive)) 
    200200                return false; 
     201            if (!clicked.is(settings.header)) 
     202                return; 
    201203 
    202204            // switch classes