public/debug/phpunitwebui/js/functions.js
/**
 * Shows or hides a group.
 *
 * @param string id of the group
 */
Shows or hides a group.
@param string id of the group
Shows or hides a group . @param string id of the group
function toggleGroup(id)
{
    var group = document.getElementById(id);
    var arrow = document.getElementById('arrow_' + id);
    if(group.style.display == 'block') {
        group.style.display = 'none';
        arrow.src = 'images/collapsed.png'
    } else {
        group.style.display = 'block';
        arrow.src = 'images/expanded.png';
    }
    var arrows = $('.arrow_suite');
	arrows.attr('src', 'images/collapsed.png');
	var length = arrows.length;
	for(var i = 0; i< length; i++){
		id = arrows[i].id;
		var name = id.split('_')[1];
		var top = arrows[i].offsetTop;
		var left = arrows[i].offsetLeft + 20;
		$('#tests_'+name).css('top', top+'px').css('left', left+'px');
	}
}
function toggleGroup ( id ) { var group = document . getElementById ( id ) ; var arrow = document . getElementById ( 'arrow_' + id ) ; if ( group . style . display == 'block' ) { group . style . display = 'none' ; arrow . src = 'images/collapsed.png' } else { group . style . display = 'block' ; arrow . src = 'images/expanded.png' ; } var arrows = $ ( '.arrow_suite' ) ; arrows . attr ( 'src' , 'images/collapsed.png' ) ; var length = arrows . length ; for ( var i = 0 ; i < length ; i ++ ) { id = arrows [ i ] . id ; var name = id . split ( '_' ) [ 1 ] ; var top = arrows [ i ] . offsetTop ; var left = arrows [ i ] . offsetLeft + 20 ; $ ( '#tests_' + name ) . css ( 'top' , top + 'px' ) . css ( 'left' , left + 'px' ) ; } }
Shows or hides a group.
Shows or hides a group .