web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 11 Apr 2013 10:32:00 +0200
branchstable
changeset 8886 bff36e86f74a
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[devtools] prevent Xvfb resets Seems like firefox opens more than one connection to the X server in some cases, and things get utterly confused.

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