Sha256: bcbb4a09fb24840bf1191bb757dde3bd13d5dcd2bc5fd2ce20a038a0005afba8

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

$(function() {
    var scenarioHeader = 'section.scenario header';
    $(scenarioHeader).siblings().hide();

    /**
     * Step folding/expanding
     */
    $(scenarioHeader).click(function() {
        $(this).siblings().slideToggle();
    });

    /**
     * All step folding/expanding action
     */
    $('#scenario_display_check').change(function() {
        var steps = $(scenarioHeader).siblings();

        if (this.checked) {
            steps.slideUp();
        } else {
            steps.slideDown();
        }
    });

    ["passed", "failed", "pending"].forEach(function(status) {
        $('#' + status + '_check').click(function() {
            if (this.checked) {
                $('.scenario.' + status).show();
            } else {
                $('.scenario.' + status).hide();
            }
        });
    });

    $(".scenario.passed").hide();
    $(".scenario.pending").hide();

    /**
     * Tabs
     */
    $('div#main').tabs();
    $('div#speed-statistics a').click(function() {
        $('div#main').tabs("option", "active", 0);
    });

    $("div#speed-statistics table").tablesorter({
        headers: {
            1: { sorter: false }
        }
    });
});

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
turnip_formatter-0.2.11 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.10 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.9 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.8 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.7 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.6 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.5 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.4 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.3 lib/turnip_formatter/template/turnip_formatter.js
turnip_formatter-0.2.2 lib/turnip_formatter/template/turnip_formatter.js