web/data/cubicweb.log.js
changeset 7995 9a9f35ef418c
equal deleted inserted replaced
7994:af3fb709c061 7995:9a9f35ef418c
       
     1 // This contains template-specific javascript
       
     2 
       
     3 function filterLog(domid, thresholdLevel) {
       
     4     var logLevels = ["Debug", "Info", "Warning", "Error", "Fatal"]
       
     5     var action = "hide";
       
     6     for (var idx = 0; idx < logLevels.length; idx++){
       
     7         var level = logLevels[idx];
       
     8         if (level === thresholdLevel){
       
     9             action = "show";
       
    10         }
       
    11         $('#'+domid+' .log' + level)[action]();
       
    12     }
       
    13 }