web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 14 Jan 2014 17:30:13 +0100
changeset 9472 ae97167956b1
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[devtools] fix self.session._cnx vs self.cnx._cnx confusion after self.login Make sure the client connection and the session refer to the same server connection.

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