[FIX] web: statusbar click

When the statusbar is clicked, a `debounce` function prevents a
doucle-click, and therefore making several `write` calls. On some status
bars, clicking doesn't work anymore.

The reason is because, in some mysterious cases, the event is propagated
to the parent. The `currentTarget` is not the `li` element, but the
parent `ul`. By setting the `immediate` argument to `true` (execute the
first function instead of the last), this solves the issue.
This commit is contained in:
Nicolas Martinelli
2016-09-02 10:27:41 +02:00
parent 7b93e1dc7b
commit 2559b2cf4f
+1 -1
View File
@@ -6178,7 +6178,7 @@ instance.web.form.FieldStatus = instance.web.form.AbstractField.extend({
});
}
}
}, 300),
}, 300, true),
});
instance.web.form.FieldMonetary = instance.web.form.FieldFloat.extend({