Commit 3d9f783f453f6b2040160b0dd9a322c159d7b46d
1 parent
8046f4ee
Exists in
master
and in
13 other branches
Some more modification
Showing
2 changed files
with
8 additions
and
9 deletions
Show diff stats
js/app/views/CatalogUI.js
... | ... | @@ -17,9 +17,6 @@ Ext.define('amdaUI.CatalogUI', { |
17 | 17 | 'Ext.ux.grid.filter.DateFilter', |
18 | 18 | 'Ext.ux.grid.filter.NumericFilter', |
19 | 19 | 'Ext.ux.grid.filter.StringFilter', |
20 | - // 'amdaUI.CustomNumericFilter', | |
21 | - // 'amdaUI.CustomStringFilter', | |
22 | - // 'amdaUI.CustomDateFilter', | |
23 | 20 | 'amdaUI.CustomFilters', |
24 | 21 | 'amdaUI.OperationsTT', |
25 | 22 | 'amdaUI.DescriptionField', |
... | ... |
js/app/views/TimeTableUI.js
... | ... | @@ -16,6 +16,7 @@ Ext.define('amdaUI.TimeTableUI', { |
16 | 16 | 'Ext.ux.grid.FiltersFeature', |
17 | 17 | 'Ext.ux.grid.filter.DateFilter', |
18 | 18 | 'Ext.ux.grid.filter.NumericFilter', |
19 | + 'amdaUI.CustomFilters', | |
19 | 20 | 'amdaUI.OperationsTT', |
20 | 21 | 'amdaUI.StatisticalPlug', |
21 | 22 | 'amdaUI.DescriptionField', |
... | ... | @@ -399,6 +400,7 @@ Ext.define('amdaUI.TimeTableUI', { |
399 | 400 | |
400 | 401 | init: function (config) |
401 | 402 | { |
403 | + amdaUI.CustomFilters.init(); | |
402 | 404 | this.object = config.object; |
403 | 405 | |
404 | 406 | this.fieldName = new Ext.form.field.Text({ |
... | ... | @@ -508,12 +510,12 @@ Ext.define('amdaUI.TimeTableUI', { |
508 | 510 | encode: true, // json encode the filter query |
509 | 511 | local: false, // defaults to false (remote filte |
510 | 512 | filters: [ |
511 | - {type: 'numeric', dataIndex: 'durationDay'}, | |
512 | - {type: 'numeric', dataIndex: 'durationHour'}, | |
513 | - {type: 'numeric', dataIndex: 'durationMin'}, | |
514 | - {type: 'numeric', dataIndex: 'durationSec'}, | |
515 | - {type: 'date', dataIndex: 'start', dateFormat: 'c'}, | |
516 | - {type: 'date', dataIndex: 'stop', dateFormat: 'c'} | |
513 | + {type: 'customnumericfilter', dataIndex: 'durationDay'}, | |
514 | + {type: 'customnumericfilter', dataIndex: 'durationHour'}, | |
515 | + {type: 'customnumericfilter', dataIndex: 'durationMin'}, | |
516 | + {type: 'customnumericfilter', dataIndex: 'durationSec'}, | |
517 | + {type: 'customdatefilter', dataIndex: 'start', dateFormat: 'c'}, | |
518 | + {type: 'customdatefilter', dataIndex: 'stop', dateFormat: 'c'} | |
517 | 519 | ] |
518 | 520 | }; |
519 | 521 | var cellEditing = Ext.create('Ext.grid.plugin.CellEditing', { |
... | ... |