search widget : widget numeric => default operator is now equals

because of the id field who will be almost the only numeric field, searching by id is the most common use case

SVN:b1162[5566]
This commit is contained in:
Bruno Da Silva
2018-03-29 09:14:28 +00:00
parent 06f648b714
commit 73d9ea42f0

View File

@@ -10,18 +10,18 @@ $(function()
options:
{
// Overload default operator
'operator': 'between',
'operator': '=',
// Available operators
'available_operators': {
'between': {
'label': Dict.S('UI:Search:Criteria:Operator:Numeric:Between'),
'code': 'between',
'rank': 0,
},
'=': {
'label': Dict.S('UI:Search:Criteria:Operator:Numeric:Equals'),//pre-existing, label changed
// 'dropdown_group':1,
},
'between': {
'label': Dict.S('UI:Search:Criteria:Operator:Numeric:Between'),
'code': 'between',
'rank': 50,
},
'>': {
'label': Dict.S('UI:Search:Criteria:Operator:Numeric:GreaterThan'),
'code': 'greater_than',