web/data/cubicweb.log.js
author David Douard <david.douard@logilab.fr>
Fri, 22 Jul 2016 19:02:52 +0200
branch3.22
changeset 11443 15ffaea0672d
parent 7995 9a9f35ef418c
permissions -rw-r--r--
Added tag 3.22.4, debian/3.22.4-1, centos/3.22.4-1 for changeset 92db0bb8e26d

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