width : 100
});
- var cm = new Ext.grid.ColumnModel([ enabledColumn, {
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns : [ enabledColumn, {
header : "Username",
dataIndex : 'username',
editor : new fm.TextField({
dataIndex : 'comment',
width : 400,
editor : new fm.TextField({})
- } ]);
+ } ]});
var UserRecord = Ext.data.Record.create([ 'enabled', 'streaming', 'dvr',
'dvrallcfg', 'admin', 'webui', 'username', 'prefix', 'password',
}
}
- var cm = new Ext.grid.ColumnModel([ enabledColumn, {
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns: [ enabledColumn, {
header : "Camd.socket Filename",
dataIndex : 'camdfilename',
width : 200,
return value;
},
editor : new fm.TextField()
- } ]);
+ } ]});
var rec = Ext.data.Record.create([ 'enabled', 'connected', 'camdfilename',
'port', 'comment' ]);
}, {
header : "Name",
dataIndex : 'name',
+ sortable: true,
width : 150,
editor : new fm.TextField({
allowBlank : false
+ 'on top of logo.'
});
- var cm = new Ext.grid.ColumnModel([ enabledColumn, {
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns : [ enabledColumn, {
header : "Name",
dataIndex : 'name',
editor : new fm.TextField({
dataIndex : 'comment',
width : 400,
editor : new fm.TextField({})
- } ]);
+ } ]});
var ChannelTagRecord = Ext.data.Record.create([ 'enabled', 'name',
'internal', 'icon', 'comment', 'titledIcon' ]);
}
}
- var cm = new Ext.grid.ColumnModel([ enabledColumn, {
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns : [ enabledColumn, {
header : "Hostname",
dataIndex : 'hostname',
width : 200,
return value;
},
editor : new fm.TextField()
- } ]);
+ } ]});
var rec = Ext.data.Record.create([ 'enabled', 'connected', 'hostname',
'port', 'username', 'password', 'deskey', 'emm', 'emmex', 'comment' ]);
width : 50
}, qualityColumn);
- var cm = new Ext.grid.ColumnModel(cmlist);
- cm.defaultSortable = true;
+ var cm = new Ext.grid.ColumnModel({
+ columns: cmlist,
+ defaultSortable: true});
var rec = Ext.data.Record.create([ 'id', 'enabled', 'network', 'freq',
'pol', 'satconf', 'muxid', 'quality', 'fe_status', 'mod' ]);
} ]
});
- var cm = new Ext.grid.ColumnModel([
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns: [
enabledColumn,
{
header : "Service name",
dataIndex : 'pcr',
width : 50,
hidden : true
- }, actions ]);
-
- cm.defaultSortable = true;
+ }, actions ]});
var store = new Ext.data.JsonStore({
root : 'entries',
tvheadend.dvb_satconf = function(adapterId, lnbStore) {
var fm = Ext.form;
- var cm = new Ext.grid.ColumnModel([ {
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns: [ {
header : "Name",
dataIndex : 'name',
width : 200,
dataIndex : 'comment',
width : 400,
editor : new fm.TextField()
- } ]);
+ } ]});
var rec = Ext.data.Record.create([ 'name', 'port', 'comment', 'lnb' ]);
width : 30
});
- var cm = new Ext.grid.ColumnModel(
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns :
[
enabledColumn,
{
editor : new fm.TextField({
allowBlank : false
})
- } ]);
+ } ]});
return new tvheadend.tableEditor('Automatic Recorder', 'autorec', cm,
tvheadend.autorecRecord, [ enabledColumn ], tvheadend.autorecStore,
} ]
});
- var cm = new Ext.grid.ColumnModel([
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns : [
enabledColumn,
{
header : "Channel name",
dataIndex : 'pcr',
width : 50,
hidden : true
- }, actions ]);
-
- cm.defaultSortable = true;
+ }, actions ]});
var rec = Ext.data.Record.create([ 'id', 'enabled', 'channelname',
'interface', 'group', 'port', 'sid', 'pmt', 'pcr', 'stype' ]);
tvheadend.tableEditor = function(title, dtable, cm, rec, plugins, store,
helpContent, icon) {
- cm.defaultSortable = true;
if (store == null) {
store = new Ext.data.JsonStore({
width : 45
});
- var cm = new Ext.grid.ColumnModel([ enabledColumn, {
+ var cm = new Ext.grid.ColumnModel({
+ defaultSortable: true,
+ columns : [
+ enabledColumn, {
header : "Channel name",
dataIndex : 'channelname',
width : 150,
minValue : 10000,
maxValue : 1000000000
})
- } ]);
-
- cm.defaultSortable = true;
+ } ]});
var rec = Ext.data.Record.create([ 'id', 'enabled', 'channelname',
'frequency' ]);