Browse Source

Explicit radix

According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt#Parameters, we should always specify the radix.
pull/247/merge
Jairo Llopis 7 years ago
parent
commit
848d1ef493
  1. 2
      web_menu_navbar_needaction/static/src/js/web_menu_navbar_needaction.js

2
web_menu_navbar_needaction/static/src/js/web_menu_navbar_needaction.js

@ -36,7 +36,7 @@ openerp.web_menu_navbar_needaction = function(instance)
},
refresh_navbar_needaction: function(timeout)
{
if(parseInt(timeout))
if(parseInt(timeout, 10))
{
setTimeout(this.proxy(this.refresh_navbar_needaction), timeout, timeout);
}

Loading…
Cancel
Save