')
+ const $name = $('
')
.addClass('link-item-name')
.text(name)
- .append(' ')
+ .append(' ');
let $role;
@@ -293,7 +293,7 @@ class LinkMultipleWithRoleFieldView extends LinkMultipleFieldView {
$role = this.getJQSelect(id, role);
}
else {
- let text = this.rolePlaceholderText || this.translate(this.roleField, 'fields', this.roleFieldScope);
+ const text = this.rolePlaceholderText || this.translate(this.roleField, 'fields', this.roleFieldScope);
$role = $('')
.addClass('role form-control input-sm')
@@ -320,7 +320,7 @@ class LinkMultipleWithRoleFieldView extends LinkMultipleFieldView {
}
if (this.isEditMode() && $role) {
- let fetch = ($target) => {
+ const fetch = ($target) => {
if (!$target || !$target.length) {
return;
}
@@ -330,7 +330,7 @@ class LinkMultipleWithRoleFieldView extends LinkMultipleFieldView {
}
let value = $target.val().toString().trim();
- let id = $target.data('id');
+ const id = $target.data('id');
if (value === '') {
value = null;
@@ -352,7 +352,7 @@ class LinkMultipleWithRoleFieldView extends LinkMultipleFieldView {
}
fetch() {
- let data = super.fetch();
+ const data = super.fetch();
if (!this.skipRoles) {
data[this.columnsName] = Espo.Utils.cloneDeep(this.columns);