diff --git a/source/Ox.UI/js/Form/Filter.js b/source/Ox.UI/js/Form/Filter.js index 171f0eed..01c5a36c 100644 --- a/source/Ox.UI/js/Form/Filter.js +++ b/source/Ox.UI/js/Form/Filter.js @@ -68,6 +68,10 @@ Ox.Filter = function(options, self) { {id: '=,', title: Ox._('is between')}, {id: '!=,', title: Ox._('is not between')} ], + item: [ + {id: '==', title: Ox._('is')}, + {id: '!==', title: Ox._('is not')} + ], list: [ {id: '==', title: Ox._('is')}, {id: '!==', title: Ox._('is not')} @@ -114,6 +118,7 @@ Ox.Filter = function(options, self) { float: 0, hue: 0, integer: 0, + item: void 0, list: '', string: '', text: '', @@ -691,6 +696,12 @@ Ox.Filter = function(options, self) { value: value, width: !isArray ? 288 : 128 }); + } else if (type == 'item') { + $input = Ox.Select({ + items: findKey.values, + value: value, + width: 288 + }); } else if (type == 'list') { Ox.Log('FILTER', findKey) $input = Ox.Input({ @@ -771,7 +782,7 @@ Ox.Filter = function(options, self) { Ox.Input({ type: type, value: value, - width: !isArray ? 240 : 80 + width: !isArray ? 242 : 80 }), formatType == 'value' ? Ox.Select({ overlap: 'left',