web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 23 Apr 2014 18:41:34 +0200
changeset 9721 2f08bd4c813b
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[server/session] remove json dumps around call_service This backouts changeset b151beea9cb6. With call_service being in-process and synchronous, there's no RPC use case.

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