web/data/cubicweb.log.js
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 17 Feb 2014 15:01:23 +0100
changeset 9546 a0cf2993b6d3
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[server] Handle unique constraint violations under recent sqlite The error message changed from "columns foo, bar, baz are not unique" to "UNIQUE constraint failed: table.foo, table.bar, table.baz". Closes #3564510

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