[fix] set json formatting for statusbar
bzr revid: nicolas.vanhoren@openerp.com-20110909143450-i2g2q3uoevkj0j9b
This commit is contained in:
parent
ab6f81825c
commit
8d9440e41c
|
@ -2536,7 +2536,7 @@ openerp.web.form.FieldStatus = openerp.web.form.Field.extend({
|
|||
var content = openerp.web.qweb.render("FieldStatus.content", {widget: this, _:_});
|
||||
this.$element.html(content);
|
||||
|
||||
var colors = JSON.parse(((this.node.attrs || {}).statusbar_colors || "{}").split("'").join('"'));
|
||||
var colors = JSON.parse((this.node.attrs || {}).statusbar_colors || "{}");
|
||||
var color = colors[this.selected_value];
|
||||
if (color) {
|
||||
var elem = this.$element.find("li.oe-arrow-list-selected span");
|
||||
|
|
Loading…
Reference in New Issue