webui idnode: hack to overcome extjs display issue

This commit is contained in:
Adam Sutton 2014-03-17 23:48:15 +00:00
parent 701316a010
commit a3d2062c01

View file

@ -112,7 +112,7 @@ tvheadend.IdNodeField = function (conf)
this.id = conf.id;
this.text = conf.caption || this.id;
this.type = conf.type;
this.list = conf.list;
this.list = conf.list;
this.rdonly = conf.rdonly;
this.wronly = conf.wronly;
this.wronce = conf.wronce;
@ -298,9 +298,11 @@ tvheadend.idnode_editor_field = function(f, create)
}
});
if (st.on) {
st.on('load', function() {
r.setValue(r.getValue());
});
var fn = function() {
st.un('load', fn);
r.setValue(value); // HACK: to get extjs to display properly
};
st.on('load', fn);
}
return r;
/* TODO: listeners for regexp?