YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function registerRefreshStatus has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        registerRefreshStatus: function () {
            let form = this.getForm();
            form.find('.js-refresh-status').on('click', function () {
                const progressIndicator = $.progressIndicator({
                    blockInfo: { enabled: true }

    Function showEditView has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        showEditView(params) {
            AppConnector.request(params).done((data) => {
                app.showModalWindow(data, (container) => {
                    App.Fields.Icon.register(container);
                    container.find('.js-modal__save').on('click', (e, skipConfirmation) => {

      Function renderBusinessHours has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              renderBusinessHours(rows) {
                  let html = `<table class="table table-sm js-business-hours-table" data-js="container">`;
                  html += `<thead>
                      <tr>
                          <th colspan="6" class="text-center">${app.vtranslate('JS_BUSINESS_HOURS')}</th>

        Function usersFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                usersFilter: function () {
                    $('#usersFilter').on('change', () => {
                        const progressInstance = $.progressIndicator({
                            position: 'html',
                            blockInfo: {
        Severity: Minor
        Found in public_html/layouts/basic/modules/Users/resources/List.js - About 1 hr to fix

          Function registerSubmitForm has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  registerSubmitForm: function () {
                      let form = this.getForm();
                      form.on('submit', function (e) {
                          e.preventDefault();
                          if (form.validationEngine('validate') === true) {

            Function registerChangeVal has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    registerChangeVal: function ($container) {
                        $container.on('change', 'select', (e) => {
                            let $target = $(e.currentTarget);
                            let isMultiple = $target.attr('multiple');
                            if ($target.validationEngine('validate')) {

              Function saveConfig has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      saveConfig: function () {
                          jQuery('.js-config-field').on('change', function () {
                              var status = jQuery(this).val();
                              AppConnector.request({
                                  module: 'RealizationProcesses',

                Function registerPopUpSaveEvent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        registerPopUpSaveEvent: function (data, fieldUiHolder) {
                            jQuery('[name="saveButton"]', data).on('click', function (e) {
                                var valueType = jQuery('.textType', data).val();
                
                                fieldUiHolder.find('[name="valuetype"]').val(valueType);

                  Function registerSave has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          registerSave: function () {
                              let tab = $('#my-tab-content');
                              tab.find('input').on('change', function () {
                                  let name = this.name;
                                  let checked = this.checked;

                    Function checkDuplicateName has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            checkDuplicateName: function (details) {
                                var aDeferred = jQuery.Deferred();
                                var taxName = details.taxlabel;
                                var taxId = details.taxid;
                                var moduleName = app.getModuleName();
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Settings/Vtiger/resources/Tax.js - About 1 hr to fix

                      Function registerSubmit has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              registerSubmit: function () {
                                  var container = this.getForm();
                                  var form = container.find('form');
                                  form.on('submit', function (e) {
                                      e.preventDefault();

                        Function registerUpdateLanguageBtn has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            registerUpdateLanguageBtn(container) {
                                container.find('.js-update').on('click', function (e) {
                                    let icon = $(e.target).find('.js-update__icon'),
                                        progress = $.progressIndicator({
                                            message: app.vtranslate('JS_LOADING_PLEASE_WAIT'),

                          Function registerAddInvitation has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  registerAddInvitation(container) {
                                      container.find('.js-btn-add-invitation').on('click', (e) => {
                                          let progressIndicatorElement = $.progressIndicator();
                                          app.showModalWindow(null, 'index.php?module=Calendar&view=InviteEmail', (data) => {
                                              data.find('.js-modal__save').on('click', (e) => {
                          Severity: Minor
                          Found in public_html/layouts/basic/modules/Calendar/resources/Edit.js - About 1 hr to fix

                            Function saveFieldValues has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    saveFieldValues: function (fieldDetailList) {
                                        var aDeferred = jQuery.Deferred();
                                        var recordId = this.getRecordId();
                            
                                        var data = {};
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Leads/resources/Detail.js - About 1 hr to fix

                              Function showAnnouncement has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      showAnnouncement: function () {
                                          let thisInstance = this;
                                          let announcementContainer = $('#announcements');
                                          let announcements = announcementContainer.find('.announcement');
                                          if (announcements.length > 0) {
                              Severity: Minor
                              Found in public_html/layouts/basic/modules/Vtiger/resources/Header.js - About 1 hr to fix

                                Function registerPopUpSaveEvent has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        registerPopUpSaveEvent: function (data, fieldUiHolder) {
                                            jQuery('[name="saveButton"]', data).on('click', function (e) {
                                                var valueType = jQuery('.textType', data).val();
                                
                                                fieldUiHolder.find('[name="valuetype"]').val(valueType);

                                  Function getInstanceByModuleName has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          getInstanceByModuleName: function (moduleName) {
                                              if (typeof moduleName === 'undefined') {
                                                  moduleName = app.getModuleName();
                                              }
                                              let parentModule = app.getParentModuleName(),
                                  Severity: Minor
                                  Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

                                    Function source has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                                source: function (request, response) {
                                                                    AppConnector.request({
                                                                        module: self.moduleName,
                                                                        action: 'Fields',
                                                                        mode: 'findAddress',
                                    Severity: Minor
                                    Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

                                      Function registerCommentEventsInDetail has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              registerCommentEventsInDetail(widgetContainer) {
                                                  new App.Fields.Text.Completions($('.js-completions').eq(0));
                                                  widgetContainer.on('change', '.js-hierarchy-comments', function (e) {
                                                      let hierarchy = [];
                                                      widgetContainer.find('.js-hierarchy-comments').each(function () {
                                      Severity: Minor
                                      Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                                        Function massUpdatePagination has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                massUpdatePagination(urlParams = []) {
                                                    const self = this,
                                                        listViewPageDiv = this.getListViewContainer();
                                                    let paginationObject = listViewPageDiv.find('.js-pagination-list'),
                                                        totalCount = paginationObject.data('totalCount'),
                                        Severity: Minor
                                        Found in public_html/layouts/basic/modules/Vtiger/resources/List.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language