From 986edeb79e67d342bda9db65eb629f6d63a94e0d Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 1 Nov 2023 16:49:13 +0200 Subject: [PATCH] cs --- client/src/views/modals/mass-update.js | 38 +++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/client/src/views/modals/mass-update.js b/client/src/views/modals/mass-update.js index 027ee849ad..7a3eb47154 100644 --- a/client/src/views/modals/mass-update.js +++ b/client/src/views/modals/mass-update.js @@ -52,7 +52,7 @@ class MassUpdateModalView extends ModalView { events = { /** @this MassUpdateModalView */ 'click a[data-action="add-field"]': function (e) { - let field = $(e.currentTarget).data('name'); + const field = $(e.currentTarget).data('name'); this.addField(field); }, @@ -86,7 +86,7 @@ class MassUpdateModalView extends ModalView { this.hasActionMap = {}; - let totalCount = this.options.totalCount; + const totalCount = this.options.totalCount; this.helper = new MassActionHelper(this); @@ -139,11 +139,11 @@ class MassUpdateModalView extends ModalView { this.addedFieldList.push(name); - let label = this.getHelper().escapeString( + const label = this.getHelper().escapeString( this.translate(name, 'fields', this.entityType) ); - let $cell = + const $cell = $('
') .addClass('cell form-group') .attr('data-name', name) @@ -158,7 +158,7 @@ class MassUpdateModalView extends ModalView { .attr('data-name', name) ); - let $row = + const $row = $('
') .addClass('item grid-auto-fill-md') .attr('data-name', name) @@ -166,13 +166,13 @@ class MassUpdateModalView extends ModalView { this.$el.find('.fields-container').append($row); - let type = this.model.getFieldType(name); - let viewName = this.model.getFieldParam(name, 'view') || this.getFieldManager().getViewName(type); + const type = this.model.getFieldType(name); + const viewName = this.model.getFieldParam(name, 'view') || this.getFieldManager().getViewName(type); - let actionList = this.getMetadata().get(['entityDefs', this.entityType, name, 'massUpdateActionList']) || + const actionList = this.getMetadata().get(['entityDefs', this.entityType, name, 'massUpdateActionList']) || this.getMetadata().get(['fields', type, 'massUpdateActionList']); - let hasActionDropdown = actionList !== null; + const hasActionDropdown = actionList !== null; this.hasActionMap[name] = hasActionDropdown; @@ -192,13 +192,13 @@ class MassUpdateModalView extends ModalView { }); if (hasActionDropdown) { - let $select = + const $select = $('