web/data/cubicweb.log.js
author Rabah Meradi <rabah.meradi@logilab.fr>
Wed, 03 Jun 2015 17:22:06 +0200
changeset 10383 53d7cf6f0b84
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[doc] fix errors in test_visibility_propagation example * forget to use the access instructions * wrong use of the function entity_from_eid * some indentation problems

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