Remove active class addition; don't remove data attr, only expand a
This commit is contained in:
parent
2842d416a5
commit
c2d41ca6fd
1 changed files with 1 additions and 3 deletions
|
@ -131,12 +131,10 @@ $(document).ready(function() {
|
|||
$('a[data-expand-link-text]').each(function(index, element) {
|
||||
var $element = $(element);
|
||||
$element.append($element.data('expand-link-text'));
|
||||
$element.removeAttr('data-expand-link-text');
|
||||
});
|
||||
$('.expandable-section').each(function(index) {
|
||||
var $expandlink = $(this).children('.expander');
|
||||
var $expandlink = $(this).children('a.expander');
|
||||
var $ourexpandablesection = $(this);
|
||||
$expandlink.addClass('active').trigger('click');
|
||||
$expandlink.on('click', function(event) {
|
||||
$expandlink.fadeOut('slow');
|
||||
$ourexpandablesection.find('.read-more').each(function(index) { $(this).click(); }); });
|
||||
|
|
Loading…
Reference in a new issue