Sha256: 8a6776db05c183370ece56a6f509cbb283a3fd3c0b7211158f85adee7aa5c903
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
(function($, App) { 'use strict'; $(function() { scrivito.on('content', function(content) { $(content).find('.scrivito-accordion-group').each(function(i, group) { var accordion_group = $(group); accordion_group.find('.scrivito-accordion-title').each(function(i, accordion_title) { var accordion_title = $(accordion_title); accordion_title.click(function() { accordion_group.find('.scrivito-accordion-title').removeClass('scrivito-accordion-active'); accordion_title.addClass('scrivito-accordion-active'); accordion_group.find('.scrivito-accordion-content').removeClass('scrivito-accordion-active'); accordion_title.next().addClass('scrivito-accordion-active'); }); }); }); }); }); })(jQuery, this);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scrivito_accordion_widget-1.0.9 | app/assets/javascripts/scrivito_accordion_widget.js |