From a3d2062c0181d05e336a17e3efb61dd770326524 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 17 Mar 2014 23:48:15 +0000 Subject: [PATCH] webui idnode: hack to overcome extjs display issue --- src/webui/static/app/idnode.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 238c76b2..5a8577e3 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -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?