diff --git a/src/webui/static/app/chconf.js b/src/webui/static/app/chconf.js index 482b085b..8198ec70 100644 --- a/src/webui/static/app/chconf.js +++ b/src/webui/static/app/chconf.js @@ -70,6 +70,10 @@ tvheadend.channel_tab = function(panel) return "Play"; } } - ] + ], + sort : { + field : 'number', + direction : 'ASC' + } }); } diff --git a/src/webui/static/app/cwceditor.js b/src/webui/static/app/cwceditor.js index 1a96ee2d..7ec176e7 100644 --- a/src/webui/static/app/cwceditor.js +++ b/src/webui/static/app/cwceditor.js @@ -106,7 +106,11 @@ tvheadend.cwceditor = function() { baseParams : { table : 'cwc', op : "get" - } + }, + sortInfo : { + field : 'username', + direction : 'ASC' + } }); var grid = new tvheadend.tableEditor('Code Word Client', 'cwc', cm, rec, [], diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 2a573286..238c76b2 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -634,6 +634,10 @@ tvheadend.idnode_grid = function(panel, conf) filters : filters }); + var sort = null; + if (conf.sort) + sort = conf.sort; + /* Store */ var store = new Ext.data.JsonStore({ root : 'entries', @@ -643,7 +647,8 @@ tvheadend.idnode_grid = function(panel, conf) totalProperty : 'total', fields : fields, remoteSort : true, - pruneModifiedRecords : true + pruneModifiedRecords : true, + sortInfo : sort }); /* Model */ diff --git a/src/webui/static/app/iptv.js b/src/webui/static/app/iptv.js index 1aab499c..d5fc6e19 100644 --- a/src/webui/static/app/iptv.js +++ b/src/webui/static/app/iptv.js @@ -11,7 +11,11 @@ tvheadend.iptv = function(adapterId) { op : 'servicetypeList' }, fields : [ 'val', 'str' ], - autoLoad : false + autoLoad : false, + sortInfo : { + field : 'channelname', + direction : 'ASC' + } }); var fm = Ext.form; diff --git a/src/webui/static/app/mpegts.js b/src/webui/static/app/mpegts.js index 968845ed..ab46c5a8 100644 --- a/src/webui/static/app/mpegts.js +++ b/src/webui/static/app/mpegts.js @@ -46,7 +46,11 @@ tvheadend.networks = function(panel) url : 'api/mpegts/network/create' } }, - del : true + del : true, + sort : { + field : 'networkname', + direction : 'ASC' + } }); } @@ -82,7 +86,11 @@ tvheadend.muxes = function(panel) return "Play"; } } - ] + ], + sort : { + field : 'name', + direction : 'ASC' + } }); } @@ -120,6 +128,10 @@ tvheadend.services = function(panel) return "Play"; } } - ] + ], + sort : { + field : 'svcname', + direction : 'ASC' + } }); }