Browse Source

[FIX] we need to parse the parameter to an int

pull/1028/head
Holger Brunn 8 years ago
parent
commit
0df04ac252
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(timeout)
if(parseInt(timeout))
{ {
setTimeout(this.proxy(this.refresh_navbar_needaction), timeout, timeout); setTimeout(this.proxy(this.refresh_navbar_needaction), timeout, timeout);
} }

Loading…
Cancel
Save