diff options
| author | Andreas Brachold <vdr07@deltab.de> | 2009-01-08 19:49:36 +0000 |
|---|---|---|
| committer | Andreas Brachold <vdr07@deltab.de> | 2009-01-08 19:49:36 +0000 |
| commit | f41270e16f2c1f2fe823393d37f74cea567d75a3 (patch) | |
| tree | ed9fa556b7faac5d2be1e53400479dc797254cdc /skins/jason/program.js | |
| parent | 694e2f774ca10228d4fb3503cf8acd44b627164a (diff) | |
| download | xxv-f41270e16f2c1f2fe823393d37f74cea567d75a3.tar.gz xxv-f41270e16f2c1f2fe823393d37f74cea567d75a3.tar.bz2 | |
* Skin/jason: expand title column, clean filter if view changed
Diffstat (limited to 'skins/jason/program.js')
| -rw-r--r-- | skins/jason/program.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/skins/jason/program.js b/skins/jason/program.js index 0109046..8d8ac4f 100644 --- a/skins/jason/program.js +++ b/skins/jason/program.js @@ -47,11 +47,12 @@ Ext.xxv.programGrid = function(viewer, record) { this.store = new Ext.xxv.programStore(record); this.store.setDefaultSort('day', "ASC");
- this.columns = [{
- header: this.szColTitle,
- dataIndex: 'title',
- width: 150,
- renderer: this.formatTitle + this.columns = [{ + id:'expand'
+ ,header: this.szColTitle
+ ,dataIndex: 'title'
+ ,width: 150
+ ,renderer: this.formatTitle },{
header: this.szColDay,
dataIndex: 'day',
width: 50, @@ -71,8 +72,7 @@ Ext.xxv.programGrid = function(viewer, record) { cm.defaultSortable = true; this.filter = new Ext.ux.grid.Search({ - id:'program-filter' - ,position:'top' + position:'top' ,shortcutKey:null ,paramNames: { fields:'cmd' @@ -86,7 +86,7 @@ Ext.xxv.programGrid = function(viewer, record) { region: 'center'
,id: 'program-grid'
,loadMask: true - ,autoExpandColumn:'title' + ,autoExpandColumn:'expand' ,cm: cm
,sm: new Ext.grid.RowSelectionModel({
singleSelect:true
@@ -177,17 +177,16 @@ Ext.extend(Ext.xxv.programGrid, Ext.grid.GridPanel, { }
,reload : function(data) { + var f = this.filter.field.getValue(); + if(f && f != '') { + this.filter.field.setValue(''); + } this.store.baseParams = { cmd: 'p'
,data: data.id
}; - var p = {start:0, limit:configuration.pageSize}; - var f = this.filter.field.getValue(); - if(f && f != '') { - p.filter = f; - } this.store.title = data.name;
- this.store.load({params:p});
+ this.store.load({params:{start:0, limit:configuration.pageSize}});
}
,formatTitle: function(value, p, record) {
return String.format(
|
