public_html/layouts/basic/modules/Vtiger/resources/InterestsConflictModal.js
Function registerUsersEvents
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerUsersEvents: function (modalContainer) {
modalContainer.find('.js-ic-canceled-btn').click(function (e) {
let btn = $(e.currentTarget);
let tr = btn.closest('tr');
let icon = tr.find('.js-change-icon');
Function registerUnlockEvents
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerUnlockEvents: function (modalContainer) {
let form = modalContainer.find('.js-modal-form');
modalContainer.find('.js-ic-send-btn').click(function (e) {
if (!form.validationEngine('validate')) {
return;