Sha256: 31693450c187037ebef3a48adf3db653a6b7433b9bb2b4a662b7bbcf12fc3dc8

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

;(function ($, window, undefined){
  'use strict';

  $.fn.foundationAccordion = function (options) {

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

  };

})( jQuery, this );

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zurb-foundation-3.1.1 vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
zurb-foundation-3.1.0 vendor/assets/javascripts/foundation/jquery.foundation.accordion.js
zurb-foundation-3.1.0.rc1 vendor/assets/javascripts/foundation/jquery.foundation.accordion.js