web/data/cubicweb.log.js
author Rémi Cardona <remi.cardona@logilab.fr>
Wed, 22 Oct 2014 14:28:01 +0200
changeset 10097 e62d2c73784f
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[web] Beautify jquery.treeview.js Fully mechanical, just whitespace changes.

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