[FIX] styllistic fixes

bzr revid: xmo@openerp.com-20121130103638-8r77jpmb3hhmo8dt
This commit is contained in:
Xavier Morel
2012-11-30 11:36:38 +01:00
parent 33048d7c79
commit 5d313f1754
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -822,7 +822,7 @@ instance.web.Menu = instance.web.Widget.extend({
this.renderElement();
this.limit_entries();
// Hide toplevel item if there is only one
var $toplevel = this.$("li")
var $toplevel = this.$("li");
if($toplevel.length == 1) {
$toplevel.hide();
}
+1 -1
View File
@@ -24,7 +24,7 @@ openerp.web.pyeval = function (instance) {
var mod = a%b;
// in python, sign(a % b) === sign(b). Not in JS. If wrong side, add a
// round of b
if (mod > 0 && b < 0 || mod < 0 && b > 0) {
if (mod > 0 && b < 0 || mod < 0 && b > 0) {
mod += b;
}
return fn(Math.floor(a/b), mod);