diff --git a/client/src/views/modals/action-history.js b/client/src/views/modals/action-history.js index df85b5e582..281c482b3d 100644 --- a/client/src/views/modals/action-history.js +++ b/client/src/views/modals/action-history.js @@ -61,8 +61,8 @@ class ActionHistoryModalView extends ModalView { collection.maxSize = this.getConfig().get('recordsPerPage') || 20; this.collection = collection; - this.loadSearch(); - this.loadList(); + this.setupSearch(); + this.setupList(); collection.fetch(); }); @@ -74,7 +74,7 @@ class ActionHistoryModalView extends ModalView { this.close(); } - loadSearch() { + setupSearch() { let searchManager = this.searchManager = new SearchManager(this.collection, 'listSelect', null, this.getDateTime()); @@ -90,7 +90,7 @@ class ActionHistoryModalView extends ModalView { }); } - loadList() { + setupList() { let viewName = this.getMetadata().get(`clientDefs.${this.scope}.recordViews.list`) || 'views/record/list'; diff --git a/client/src/views/modals/related-list.js b/client/src/views/modals/related-list.js index 371283a637..e6fbf7200b 100644 --- a/client/src/views/modals/related-list.js +++ b/client/src/views/modals/related-list.js @@ -298,11 +298,11 @@ class RelatedListModalView extends ModalView { }); } - this.loadSearch(); + this.setupSearch(); this.wait(true); - this.loadList(); + this.setupList(); }); } @@ -318,7 +318,7 @@ class RelatedListModalView extends ModalView { return this.getView('search'); } - loadSearch() { + setupSearch() { let searchManager = this.searchManager = new SearchManager(this.collection, 'listSelect', null, this.getDateTime()); @@ -375,7 +375,7 @@ class RelatedListModalView extends ModalView { } } - loadList() { + setupList() { let viewName = this.listViewName || this.getMetadata().get(['clientDefs', this.scope, 'recordViews', 'listRelated']) || @@ -402,7 +402,7 @@ class RelatedListModalView extends ModalView { this.getMetadata().get(['clientDefs', this.scope, 'listPagination']) || null, }, view => { - this.listenToOnce(view, 'select', (model) => { + this.listenToOnce(view, 'select', model => { this.trigger('select', model); this.close(); @@ -432,7 +432,7 @@ class RelatedListModalView extends ModalView { return; } - view.getSelectAttributeList((selectAttributeList) => { + view.getSelectAttributeList(selectAttributeList => { if (!~selectAttributeList.indexOf('name')) { selectAttributeList.push('name'); } @@ -440,7 +440,7 @@ class RelatedListModalView extends ModalView { let mandatorySelectAttributeList = this.options.mandatorySelectAttributeList || this.mandatorySelectAttributeList || []; - mandatorySelectAttributeList.forEach((attribute) => { + mandatorySelectAttributeList.forEach(attribute => { if (!~selectAttributeList.indexOf(attribute)) { selectAttributeList.push(attribute); } diff --git a/client/src/views/modals/select-records.js b/client/src/views/modals/select-records.js index 87d828782d..df174cb438 100644 --- a/client/src/views/modals/select-records.js +++ b/client/src/views/modals/select-records.js @@ -182,13 +182,13 @@ class SelectRecordsModalView extends ModalView { this.collection.setOrder(this.defaultOrderBy, this.defaultOrder || 'asc', true); } - this.loadSearch(); + this.setupSearch(); this.wait(true); - this.loadList(); + this.setupList(); }); } - loadSearch() { + setupSearch() { let searchManager = this.searchManager = new SearchManager(this.collection, 'listSelect', null, this.getDateTime()); @@ -233,7 +233,7 @@ class SelectRecordsModalView extends ModalView { } } - loadList() { + setupList() { let viewName = this.getMetadata().get('clientDefs.' + this.scope + '.recordViews.listSelect') || this.getMetadata().get('clientDefs.' + this.scope + '.recordViews.list') || 'views/record/list'; diff --git a/client/src/views/modals/select-template.js b/client/src/views/modals/select-template.js index e593e31297..4ec0723e28 100644 --- a/client/src/views/modals/select-template.js +++ b/client/src/views/modals/select-template.js @@ -35,8 +35,8 @@ class SelectTemplateModalView extends SelectRecordsModalView { searchPanel = false scope = 'Template' - loadSearch() { - super.loadSearch(); + setupSearch() { + super.setupSearch(); this.searchManager.setAdvanced({ entityType: {