[FIX] shut up the annoying console spamming by default. To enable it, set 'openerp.debug' to true or add 'debug' at the start of the querystring
bzr revid: xmo@openerp.com-20110324204813-09wdb7k3m5h7asca
This commit is contained in:
parent
885cab6230
commit
d6979759fa
|
@ -104,7 +104,7 @@ openerp.base.BasicController = Class.extend({
|
|||
this.on_log.apply(this,args);
|
||||
},
|
||||
on_log: function() {
|
||||
if(window.console)
|
||||
if(window.console && (window.openerp.debug || (window.location.search.indexOf('?debug') !== -1)))
|
||||
console.log(arguments);
|
||||
},
|
||||
on_ready: function() {
|
||||
|
|
Loading…
Reference in New Issue