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/1028/head
Jairo Llopis 8 years ago
committed by Holger Brunn
parent
commit
8c64013780
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  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) refresh_navbar_needaction: function(timeout)
{ {
if(parseInt(timeout))
if(parseInt(timeout, 10))
{ {
setTimeout(this.proxy(this.refresh_navbar_needaction), timeout, timeout); setTimeout(this.proxy(this.refresh_navbar_needaction), timeout, timeout);
} }

Loading…
Cancel
Save