cubicweb/web/data/cubicweb.log.js
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 05 Mar 2020 09:54:49 +0100
branch3.27
changeset 12899 af59ca8b23d0
parent 11057 0b59724cb3f2
permissions -rw-r--r--
Added tag 3.27.2, debian/3.27.2-1 for changeset e731c31eaed0

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