header: _("Service"),
dataIndex: 'service',
sortable: true
- },
+ },
{
width: 50,
id: 'profile',
header: _("Profile"),
dataIndex: 'profile',
sortable: true
- },
+ },
{
width: 50,
id: 'start',
renderer: renderBw
}
]);
-
+
function clicked(column, grid, index, e) {
if (column.dataIndex == 'in' || column.dataIndex == 'out') {
var id = grid.getStore().getAt(index).id;
forceFit: true
}
});
-
+
dpanel.add(subs);
dpanel.doLayout(false, true);
}
}));
grid = new Ext.grid.GridPanel({
- tbar: ['->', {
+ tbar: [
+ {
+ text: _('Clear all statistics'),
+ iconCls: 'clean',
+ handler: function() {
+ store = tvheadend.streamStatusStore;
+ if (!store || store == 'undefined') {
+ return;
+ }
+ clearStat = function(record) {
+ uuid = record.data.uuid;
+ if (!uuid || 'undefined') {
+ return;
+ }
+ Ext.Ajax.request({
+ url: 'api/status/inputclrstats',
+ params: { uuid: uuid }
+ });
+ }
+ store.each(clearStat)
+ }
+ },
+ '->',{
text: _('Help'),
iconCls: 'help',
handler: function() {
},
plugins: [actions]
});
-
+
dpanel.add(grid);
dpanel.doLayout(false, true);
}
},
plugins: [actions]
});
-
+
dpanel.add(grid);
dpanel.doLayout(false, true);
}