YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function confirmedCallback has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

                    confirmedCallback: () => {
                        let progressIndicatorElement = jQuery.progressIndicator({
                            message: app.vtranslate('JS_2FA_OFF_IN_PROGRESS'),
                            position: 'html',
                            blockInfo: {
Severity: Minor
Found in public_html/layouts/basic/modules/Users/resources/List.js - About 1 hr to fix

    Function registerDeleteCustomFieldEvent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            registerDeleteCustomFieldEvent: function (contents) {
                const thisInstance = this;
                if (typeof contents === 'undefined') {
                    contents = this.container.find('.contents');
                }

      Function saveCurrencyDetails has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              saveCurrencyDetails: function (form) {
                  var thisInstance = this;
                  var progressIndicatorElement = jQuery.progressIndicator({
                      position: 'html',
                      blockInfo: {

        Function changeStateFavorites has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                changeStateFavorites: function (currentTarget) {
                    var relatedModule = currentTarget.closest('.relatedModule');
                    var status = currentTarget.data('state') == 1 ? 0 : 1;
                    var params = {};
                    params['module'] = app.getModuleName();

          Function loadDefaultValueWidget has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  loadDefaultValueWidget: function (element) {
                      var thisInstance = this;
                      var id = element.val() + '_defaultvalue';
                      var affectedRow = jQuery('#defaultValuesElementsContainer').find('#' + id);
                      var dafeultTd = element.closest('td').next();

            Function data has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                                    data: function (row) {
                                        let action = '';
                                        action += '<div class="o-tab__container--action">';
                                        if (row['statusId'] !== 1) {
                                            action += `<button type="button" class="btn btn-success btn-xs js-update" data-id="${

              Function removePicklistValueColor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      removePicklistValueColor: function (e) {
                          var container = jQuery('.picklistViewContentDiv');
                          var target = $(e.currentTarget);
                          var colorPreview = container.find('#calendarColorPreviewPicklistValue' + target.data('fieldvalueid'));
                          var progress = $.progressIndicator({

                Function generatePicklistValueColor has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        generatePicklistValueColor: function (e) {
                            var container = jQuery('.picklistViewContentDiv');
                            var target = $(e.currentTarget);
                            var colorPreview = container.find('#calendarColorPreviewPicklistValue' + target.data('fieldvalueid'));
                            var progress = $.progressIndicator({

                  Function confirmedCallback has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                      confirmedCallback: () => {
                                          let $target = $(e.target);
                                          let $holidayDetails = $target.closest('.holidayElement').data();
                                          Settings_PublicHoliday_Js.showProgressive();
                                          AppConnector.request({

                    Function getUi has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            getUi: function () {
                                let html, element;
                                if (this._specialDateTimeComparator(this.get('comparatorElementVal'))) {
                                    html =
                                        '<input name="' +

                      Function action has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                                      action: function (data) {
                                                          var inst = $.jstree.reference(data.reference);
                                                          var ids = inst.get_selected();
                                                          var showInfo = false;
                                                          for (var i in ids) {
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Settings/Menu/resources/Menu.js - About 1 hr to fix

                        Function registerRefresh has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

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

                          Function save has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  save: function (form, mode, params = null) {
                                      var aDeferred = jQuery.Deferred();
                                      var progressIndicatorElement = jQuery.progressIndicator({
                                          position: 'html',
                                          blockInfo: {

                            Function loadContent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                loadContent: function (mode, page, modeParams) {
                                    const thisInstance = this;
                                    let container = $('.indexContainer');
                                    let params = {
                                        mode: mode,
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Settings/Logs/resources/Index.js - About 1 hr to fix

                              Function getAdvanceSearch has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      getAdvanceSearch: function () {
                                          var aDeferred = $.Deferred();
                                          var searchModule = this.getSearchModule();
                                          //Exists in the cache
                                          if (searchModule in Vtiger_AdvanceSearch_Js.cache) {
                              Severity: Minor
                              Found in public_html/layouts/basic/modules/Vtiger/resources/AdvanceSearch.js - About 1 hr to fix

                                Function registerEditListPrice has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        registerEditListPrice: function () {
                                            let thisInstance = this;
                                            let element = this.content.find('.js-edit-listprice');
                                            element.validationEngine(app.validationEngineOptions);
                                            element.on('change', function (e) {
                                Severity: Minor
                                Found in public_html/layouts/basic/modules/Products/resources/RelatedList.js - About 1 hr to fix

                                  Function registerEditQtyProducts has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          registerEditQtyProducts: function () {
                                              let thisInstance = this;
                                              let element = this.content.find('.js-edit-qtyinstock');
                                              element.validationEngine(app.validationEngineOptions);
                                              element.on('change', function (e) {
                                  Severity: Minor
                                  Found in public_html/layouts/basic/modules/Products/resources/RelatedList.js - About 1 hr to fix

                                    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;

                                      Function initiateSearch has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              initiateSearch: function () {
                                                  var aDeferred = $.Deferred();
                                                  var thisInstance = this;
                                                  var postLoad = function (uiData) {
                                                      thisInstance.setContainer($('#advanceSearchContainer'));
                                      Severity: Minor
                                      Found in public_html/layouts/basic/modules/Vtiger/resources/AdvanceSearch.js - About 1 hr to fix

                                        Function markSelectedRecords has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                markSelectedRecords: function () {
                                                    var thisInstance = this;
                                                    var selectedIds = this.readSelectedIds();
                                                    if (selectedIds != '') {
                                                        if (selectedIds == 'all') {
                                        Severity: Minor
                                        Found in public_html/layouts/basic/modules/Campaigns/resources/List.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language