cubicweb/web/data/cubicweb.log.js
author Nicola Spanti <nicola.spanti@logilab.fr>
Thu, 19 Dec 2019 10:31:49 +0100
changeset 12828 dadbd4148a44
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[py] Make flake8 less angry with cubicweb/server/sources/

// 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]();
    }
}