From 8ce3f4dcc11fa7e36771ec8716efc33c77501dd4 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 5 May 2025 13:17:11 +0300 Subject: [PATCH] ref --- .../document/record-list-drag-n-drop.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/modules/crm/src/view-setup-handlers/document/record-list-drag-n-drop.js b/client/modules/crm/src/view-setup-handlers/document/record-list-drag-n-drop.js index b031b66a58..91a624d00a 100644 --- a/client/modules/crm/src/view-setup-handlers/document/record-list-drag-n-drop.js +++ b/client/modules/crm/src/view-setup-handlers/document/record-list-drag-n-drop.js @@ -29,7 +29,7 @@ import _ from 'underscore'; import {Events} from 'bullbone'; -let Handler = function (view) { +const Handler = function (view) { this.view = view; }; @@ -41,9 +41,9 @@ _.extend(Handler.prototype, { }, disable: function () { - let $el = this.view.$el.parent(); + const $el = this.view.$el.parent(); /** @type {Element} */ - let el = $el.get(0); + const el = $el.get(0); $el.off('drop'); @@ -63,8 +63,8 @@ _.extend(Handler.prototype, { initDragDrop: function () { this.disable(); - let $el = this.view.$el.parent(); - let el = $el.get(0); + const $el = this.view.$el.parent(); + const el = $el.get(0); $el.on('drop', e => { e.preventDefault(); @@ -103,7 +103,7 @@ _.extend(Handler.prototype, { renderDrop: function () { this.dropEntered = true; - let $backdrop = + const $backdrop = $('
') .css('pointer-events', 'none') .append('') @@ -126,10 +126,10 @@ _.extend(Handler.prototype, { this.view .actionQuickCreate() .then(view => { - let fileView = view.getRecordView().getFieldView('file'); + const fileView = view.getRecordView().getFieldView('file'); if (!fileView) { - let msg = "No 'file' field on the layout."; + const msg = "No 'file' field on the layout."; Espo.Ui.error(msg); console.error(msg);