web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 13 Jan 2014 13:47:47 +0100
changeset 9402 2c48c091b6a2
parent 7995 9a9f35ef418c
permissions -rw-r--r--
merge 3.18.0 in 3.19 branch

// This contains template-specific javascript

function filterLog(domid, thresholdLevel) {
    var logLevels = ["Debug", "Info", "Warning", "Error", "Fatal"]
    var action = "hide";
    for (var idx = 0; idx < logLevels.length; idx++){
        var level = logLevels[idx];
        if (level === thresholdLevel){
            action = "show";
        }
        $('#'+domid+' .log' + level)[action]();
    }
}