web/data/cubicweb.log.js
author Rémi Cardona <remi.cardona@logilab.fr>
Fri, 23 May 2014 18:35:13 +0200
changeset 9819 95902c0b991b
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[web/js] Deprecate baseuri() and replace with BASE_URL (closes #3955372) Added by commit 8bf2337a6f3b and publicly available since 3.11.2 released more than 3 years ago.

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