web/data/cubicweb.log.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 17 Dec 2013 14:50:29 +0100
changeset 9365 71c12e778162
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[yams] follow yams 0.39 api change introduced by ad95fd2c46de (package attribute on etype/rtype/rdef)

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