text field search

This commit is contained in:
Yuri Kuznetsov
2014-07-31 17:36:48 +03:00
parent 67f65492de
commit 667a46f141
+13
View File
@@ -34,6 +34,19 @@ Espo.define('Views.Fields.Text', 'Views.Fields.Base', function (Dep) {
setup: function () {
this.params.rows = this.params.rows || 4;
},
fetchSearch: function () {
var value = this.$element.val();
if (value) {
var data = {
type: 'like',
value: '%' + value + '%',
valueText: value
};
return data;
}
return false;
},
});
});