web/data/cubicweb.log.js
changeset 11057 0b59724cb3f2
parent 11052 058bb3dc685f
child 11058 23eb30449fe5
equal deleted inserted replaced
11052:058bb3dc685f 11057:0b59724cb3f2
     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 }