Commit c3cc6e27 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update Dbui.grid.Filter to use Dbui.getFields.

parent bd46d9c8
......@@ -151,27 +151,6 @@ Ext.define('Dbui.grid.Filter', {
return filter;
},
/**
* Get all fields embeded in the filter independantly of the
* panel / sub-panel structure as well as the layout.
*
* @return {Ext.util.MixedCollection} Collection of the Field objects
*/
getFields: function () {
"use strict";
var me = this;
// NOTE:
// - Get all fields independtly of the panel /sub-panel structure
// - The main container is a FieldSet and not a Form
// - Easy to get all fields from a form vai form.getForm().getFields()
// - For a FieldSet, copy Ext.form.Base.getFields() !
// - Rely on the private class monitor which might change in the future
//
return me.monitor.getItems();
},
/**
* Build the value to be used by the filter.
*
......@@ -279,7 +258,7 @@ Ext.define('Dbui.grid.Filter', {
var me = this;
// reset the field values
me.getFields().each(function (field) {
Dbui.getFields(me).forEach(function (field) {
field.reset();
});
......@@ -355,7 +334,7 @@ Ext.define('Dbui.grid.Filter', {
"use strict";
var me = this;
me.getFields().each(function (field) {
Dbui.getFields(me).forEach(function (field) {
switch (field.xtype) {
case "combo":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment