YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/Vtiger/resources/InterestsConflictModal.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function registerUsersEvents has 36 lines of code (exceeds 25 allowed). Consider refactoring.
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

            registerUnlockEvents: function (modalContainer) {
                let form = modalContainer.find('.js-modal-form');
                modalContainer.find('.js-ic-send-btn').click(function (e) {
                    if (!form.validationEngine('validate')) {
                        return;

      There are no issues that match your filters.

      Category
      Status