web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 16 Jan 2015 17:48:16 +0100
changeset 10184 c6dfa0d6b7d1
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[hooks] don't insert use_email relation if the entity on either side is going away Closes #4912946

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