Sha256: da475dd4207db804ad2b58a6ea8ae5509f834dfa3034b19f684a87f761ac8a16

Contents?: true

Size: 882 Bytes

Versions: 3

Compression:

Stored size: 882 Bytes

Contents

function cucumberSearchFrameLinks() {
    $('#feature_list_link').click(function() {
        toggleSearchFrame(this, relpath + 'feature_list.html');
    });
    $('#tagusage_list_link').click(function() {
        toggleSearchFrame(this, relpath + 'tag_list.html');
    });
}

$(cucumberSearchFrameLinks);

function toggleScenarioExample(id,example) {

    var element = $("#" + id + "Example" + example + "Steps")[0];

    $('#' + id + ' tr').each(function(index) {
        this.style.backgroundColor = (index % 2 == 0 ? '#FFFFFF' : '#F0F6F9' );
    });

    if (element.style.display != 'none') {
        element = $("#" + id + "Steps")[0];
    } else {
        $('#' + id + ' .outline * tr')[example].style.backgroundColor = '#FFCC80';
    }

    $('#' + id + ' .steps').each(function(index) {
        this.style.display = 'none';
    });

    element.style.display = 'block';

}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.6.3 lib/templates/default/fulldoc/html/js/cucumber.js
cucumber-in-the-yard-1.6.1 lib/templates/default/fulldoc/html/js/cucumber.js
cucumber-in-the-yard-1.6.0 lib/templates/default/fulldoc/html/js/cucumber.js