fix filter
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
<div class="link-container list-group">
|
||||
{{#each searchParams.nameHash}}
|
||||
<div class="link-{{@key}} list-group-item">
|
||||
{{this}}
|
||||
<a href="javascript:" class="pull-right" data-id="{{@key}}" data-action="clearLink"><span class="glyphicon glyphicon-remove"></a>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<div class="input-group add-team">
|
||||
|
||||
@@ -66,6 +66,7 @@ Espo.define('Views.Fields.LinkMultiple', 'Views.Fields.Base', function (Dep) {
|
||||
|
||||
if (this.mode == 'search') {
|
||||
this.nameHash = Espo.Utils.clone(this.searchParams.nameHash) || {};
|
||||
this.ids = Espo.Utils.clone(this.searchParams.value) || [];
|
||||
}
|
||||
|
||||
this.listenTo(this.model, 'change:' + this.idsName, function () {
|
||||
|
||||
@@ -171,8 +171,11 @@ Espo.define('Views.Record.Search', 'View', function (Dep) {
|
||||
|
||||
this.managePresetFilters();
|
||||
|
||||
this.createFilters();
|
||||
this.createFilters(function () {
|
||||
this.render();
|
||||
}.bind(this));
|
||||
this.updateCollection();
|
||||
|
||||
|
||||
},
|
||||
'click .advanced-filters-bar a[data-action="showFiltersPanel"]': function (e) {
|
||||
|
||||
Reference in New Issue
Block a user