cubicweb/web/data/cubicweb.log.js
author Nicolas Chauvat <nicolas.chauvat@logilab.fr>
Wed, 13 Mar 2019 10:40:05 +0100
changeset 12886 fa565be41647
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[server.querier] remove useless indirections ExecutionPlan.{syssource,rqlhelper,schema} Simpler is better.

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