cubicweb/web/data/cubicweb.log.js
author Alexandre Richardson <alexandre.richardson@logilab.fr>
Tue, 12 Jan 2016 17:36:28 +0100
changeset 11168 dfa5f8879e8f
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[rset] refactoring of _build_entity method define a method for entity instantiation and storage in cache (related to #9942503)

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