base field: search data
This commit is contained in:
@@ -157,6 +157,8 @@ Espo.define('views/fields/base', 'view', function (Dep) {
|
||||
if (this.mode === 'search') {
|
||||
data.searchParams = this.searchParams;
|
||||
data.searchData = this.searchData;
|
||||
data.searchValues = this.getSearchValues();
|
||||
data.searchType = this.getSearchType();
|
||||
}
|
||||
return data;
|
||||
},
|
||||
@@ -298,6 +300,14 @@ Espo.define('views/fields/base', 'view', function (Dep) {
|
||||
}
|
||||
},
|
||||
|
||||
getSearchValues: function () {
|
||||
return (this.searchParams.data || {}).values || {};
|
||||
},
|
||||
|
||||
getSearchType: function () {
|
||||
return (this.searchParams.data || {}).type || this.searchParams.type;
|
||||
},
|
||||
|
||||
initInlineEdit: function () {
|
||||
var $cell = this.getCellElement();
|
||||
var $editLink = $('<a href="javascript:" class="pull-right inline-edit-link hidden"><span class="glyphicon glyphicon-pencil"></span></a>');
|
||||
|
||||
Reference in New Issue
Block a user