web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 18 Sep 2015 11:05:47 +0200
changeset 10898 c96d67251a9d
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[etwist] remove no-longer-necessary uicache cleaning It was done before we were actually up, which means it could be too eager when combined with #6893185. Closes #6893247.

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