web/data/cubicweb.log.js
author Christophe de Vienne <christophe@unlish.com>
Mon, 15 Sep 2014 17:24:18 +0200
changeset 9989 cfb6e9dab902
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[cors] Fix CORS headers generators The Access-Control-Allow-* and Access-Control-Expose-Headers are response headers, not request headers. Hence, we need generators for them. Closes #4412575.

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