Javascript: define default sort for some config grids
This commit is contained in:
parent
5c7b5bb351
commit
8c4e358110
5 changed files with 36 additions and 7 deletions
|
@ -70,6 +70,10 @@ tvheadend.channel_tab = function(panel)
|
|||
return "<a href='stream/channel/" + r.id + "'>Play</a>";
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
sort : {
|
||||
field : 'number',
|
||||
direction : 'ASC'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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, [],
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 "<a href='stream/mux/" + r.id + "'>Play</a>";
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
sort : {
|
||||
field : 'name',
|
||||
direction : 'ASC'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -120,6 +128,10 @@ tvheadend.services = function(panel)
|
|||
return "<a href='stream/service/" + r.id + "'>Play</a>";
|
||||
}
|
||||
}
|
||||
]
|
||||
],
|
||||
sort : {
|
||||
field : 'svcname',
|
||||
direction : 'ASC'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue