Sha256: a6384fc44a23d609c0a6d3eb59f2307c5c1fb0d28c14790a641961dee61c661c

Contents?: true

Size: 794 Bytes

Versions: 2

Compression:

Stored size: 794 Bytes

Contents

$(document).ready(function(){

    $('body').on('click', '.load-body.expander-arrow-small-hide', function(){
        if ($(this).hasClass('hide-body expander-arrow-small-show')){
            $(this).removeClass('hide-body expander-arrow-small-show');
            $(this).find('~ span').hide();
        }else{
            var span = $(this).find('~ span');
            if(span.html() == ''){
                var attr_id = $(this).parent('TD').attr('id').split('-');
                var id = attr_id[attr_id.length - 1]
                $.get('/stackoverfeeds/feed_summary', {entry_id: id}, function (data) {
                    span.html(data);
                });
            }
            $(this).addClass('hide-body expander-arrow-small-show');
            span.show();
        }
    });

});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stackoverfeeds-1.0.1 lib/generators/stackoverfeeds/install/templates/feeds.js
stackoverfeeds-1.0.0 lib/generators/stackoverfeeds/install/templates/feeds.js