Sha256: 112aac5f198f58e8424bdf976f86fe4e880f8b97207db46006fb2706ac917cf6

Contents?: true

Size: 407 Bytes

Versions: 3

Compression:

Stored size: 407 Bytes

Contents

(function ($){
  
  $.fn.foundationAccordion = function (options) {
    
    $('.accordion li', this).on('click.fndtn', function () {
      var flyout = $(this).children('.content').first();
      $('.accordion .content').not(flyout).hide().parent('li').removeClass('active');
      flyout.show(0, function () {
        flyout.parent('li').addClass('active');
      });
    });
        
  };

})( jQuery );

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zurb-foundation-3.0.8.rc1 vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
zurb-foundation-3.0.7 vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
zurb-foundation-3.0.7.rc10 vendor/assets/javascripts/foundation/jquery.foundation.accordion.js