web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 23 Sep 2014 17:34:36 +0200
changeset 9974 b240b33c7125
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[schema] CWComputedRType is a schema type Hide it from the default views.

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