web/data/cubicweb.log.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 25 Mar 2014 09:20:37 +0100
changeset 9824 30183ecf5c61
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[datafeed parser] fix retrieve_url to always return urllib2.urlopen compatible output as one should expect to be able to call geturl/getcode/info on the returned object whatever the url he gave. Related to #3682069

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