web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 02 Dec 2015 15:24:03 +0100
changeset 11028 66f94d7f9ca7
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[dataimport] make eids_seq_range as massive store instance attribute again I changed it to a class attribute recently, but on further thought (and prompting from Adrien) it seems to make more sense as an instance attribute.

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