lib/http/public/javascripts/main.js
function show(state) {
    return function () {
        active = state;
        if (pollForJobs.timer) {
            clearTimeout(pollForJobs.timer);
            delete pollForJobs.timer;
        }
        history.pushState({ state: state }, state, state);
        o('#jobs .job').remove();
        o('#menu li a').removeClass('active');
        o('#menu li.' + state + ' a').addClass('active');
        pollForJobs(state, 1000);
        return false;
    }
}
function show(state) {
    return function () {
        active = state;
        if (pollForJobs.timer) {
            clearTimeout(pollForJobs.timer);
            delete pollForJobs.timer;
        }
        history.pushState({ state: state }, state, state);
        o('#jobs .job').remove();
        o('#menu li a').removeClass('active');
        o('#menu li.' + state + ' a').addClass('active');
        pollForJobs(state, 1000);
        return false;
    }
}
function show ( state ) { return function ( ) { active = state ; if ( pollForJobs . timer ) { clearTimeout ( pollForJobs . timer ) ; delete pollForJobs . timer ; } history . pushState ( { state : state } , state , state ) ; o ( '#jobs .job' ) . remove ( ) ; o ( '#menu li a' ) . removeClass ( 'active' ) ; o ( '#menu li.' + state + ' a' ) . addClass ( 'active' ) ; pollForJobs ( state , 1000 ) ; return false ; } }
Show jobs with `state`.

@param {String} state
@param {Boolean} init
@return {Function}
Show jobs with state .