web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 06 Mar 2014 18:41:23 +0100
branchstable
changeset 9698 737983d87497
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[migractions] add sanity check in rename_relation_type If the relation is still present in the fs schema, we probably shouldn't be renaming it (because it's still in use somewhere, possibly in a different cube). Closes #3608172

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