From aa50b12f85fbcbb2a95568048414a86f176c0cc0 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sat, 7 Sep 2013 01:17:54 +0100 Subject: [PATCH] webui: some cosmetics --- src/webui/static/app/chconf.js | 8 +++++--- src/webui/static/app/idnode.js | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index 5ea09339..8f2b75cb 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -109,11 +109,13 @@ tvheadend.channels = new Ext.data.JsonStore({ root : 'entries', fields : [ 'key', 'val' ], id : 'key', - autoLoad : true + autoLoad : true, + sortInfo : { + field : 'val', + direction : 'ASC' + } }); -tvheadend.channels.setDefaultSort('val', 'ASC'); - tvheadend.comet.on('channels', function(m) { if (m.reload != null) tvheadend.channels.reload(); }); diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 179fb563..01e6c362 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -24,6 +24,10 @@ tvheadend.idnode_get_enum = function ( conf ) fields : conf.fields || [ 'key', 'val' ], id : conf.id || 'key', autoLoad : true, + sortInfo : { + field : 'val', + direction : 'ASC' + } }); tvheadend.idnode_enum_stores[key] = st;