web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 31 Mar 2015 10:22:05 +0200 (2015-03-31)
changeset 10322 d7c33cbdce8b
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[web] kill https-deny-anonymous option (closes #5193687) It doesn't make much sense to prevent people from using https.
// 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]();
    }
}