webui: some cosmetics

This commit is contained in:
Adam Sutton 2013-09-07 01:17:54 +01:00
parent 0ac30583e7
commit aa50b12f85
2 changed files with 9 additions and 3 deletions

View file

@ -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();
});

View file

@ -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;