web/data/cubicweb.log.js
author Florent Cayré <florent.cayre@logilab.fr>
Tue, 26 Aug 2014 10:12:09 +0200
branchstable
changeset 9927 4febc1682f44
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[css] Remove the `div` tag specification of the pendingDelete css rule The HTML tag was changed by e2f96b16c3bd from a div to a span without changing the css rule accordingly. Closes #4285248.

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