web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 01 Dec 2014 15:57:12 +0100
changeset 10111 99863d0cbb10
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[book] typos / clarifications in create-instance section Clarify that cubicweb-ctl upgrade needs to be run whenever cubicweb or a cube is upgraded. Related to #2632425.

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