YetiForceCompany/YetiForceCRM

View on GitHub

Showing 4,652 of 306,333 total issues

Function saveTaxDetails has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        saveTaxDetails: function (form, currentTrElement) {
            var thisInstance = this;
            var params = form.serializeFormData();

            if (typeof params === 'undefined') {
Severity: Minor
Found in public_html/layouts/basic/modules/Settings/Vtiger/resources/Tax.js - About 1 hr to fix

    Function validate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        validate() {
            let aDeferred = $.Deferred();
            let result = this.form.validationEngine('validate');
            if (result) {
                this.saveAjax({

      Function initEvents has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              initEvents: function () {
                  var thisInstance = this;
                  var container = $('.UserColors');
                  container.find('.updateUserColor').on('click', function (e) {
                      thisInstance.updateUserColor(e, thisInstance);

        Function addDetails has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                addDetails: function (details) {
                    let container = jQuery('#inventory'),
                        currency = jQuery('#currency'),
                        symbol = '%',
                        table = $('.inventoryTable', container);

          Function updateTaxStatus has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  updateTaxStatus: function (currentTarget) {
                      var aDeferred = jQuery.Deferred();
          
                      var currentTrElement = currentTarget.closest('tr');
                      var taxId = currentTrElement.data('taxid');
          Severity: Minor
          Found in public_html/layouts/basic/modules/Settings/Vtiger/resources/Tax.js - About 1 hr to fix

            Function registerFilterChange has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    registerFilterChange: function (e) {
                        var thisInstance = this;
                        var aDeferred = $.Deferred();
                        var progress = $.progressIndicator({
                            message: app.vtranslate('JS_LOADING_PLEASE_WAIT'),

              Function getRelatedPageCount has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      getRelatedPageCount: function () {
                          let aDeferred = jQuery.Deferred();
                          let element = this.content.find('#totalPageCount');
                          let totalCountElem = this.content.find('#totalCount');
                          let totalPageNumber = element.text();
              Severity: Minor
              Found in public_html/layouts/basic/modules/Vtiger/resources/RelatedList.js - About 1 hr to fix

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

                                confirmedCallback: () => {
                                    var module = app.getModuleName();
                                    var postData = {
                                        module: module,
                                        action: 'DeleteAjax',
                Severity: Minor
                Found in public_html/layouts/basic/modules/Rss/resources/List.js - About 1 hr to fix

                  Function registerSubmitEvent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      registerSubmitEvent: function (container) {
                          const self = this;
                          container.find('[name="saveButton"]').on('click', function (e) {
                              var progressLoader = $.progressIndicator({
                                  position: 'html',

                    Function rssFeedSave has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            rssFeedSave: function (form) {
                                var thisInstance = this;
                                var data = form.serializeFormData();
                                var progressIndicatorElement = jQuery.progressIndicator({
                                    position: 'html',
                    Severity: Minor
                    Found in public_html/layouts/basic/modules/Rss/resources/List.js - About 1 hr to fix

                      Function registerEventForRelatedList has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                              registerEventForRelatedList: function () {
                                  const self = this;
                                  let detailContentsHolder = this.getContentHolder();
                                  let relatedModuleName = self.getRelatedModuleName();
                                  if (relatedModuleName) {
                      Severity: Minor
                      Found in public_html/layouts/basic/modules/Vtiger/resources/Detail.js - About 1 hr to fix

                        Function registerSubmitEvent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                registerSubmitEvent: function () {
                                    let editViewForm = this.getForm();
                                    editViewForm.on('submit', function (e) {
                                        //Form should submit only once for multiple clicks also
                                        if (typeof editViewForm.data('submit') !== 'undefined') {
                        Severity: Minor
                        Found in public_html/layouts/basic/modules/Vtiger/resources/Edit.js - About 1 hr to fix

                          Function registerClearFilterButton has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              registerClearFilterButton() {
                                  const sidebar = this.getSidebarView(),
                                      clearBtn = this.calendarView.find('.js-calendar__clear-filters');
                                  app.showPopoverElementView(clearBtn);
                                  clearBtn.on('click', () => {
                          Severity: Minor
                          Found in public_html/layouts/basic/modules/Vtiger/resources/CalendarView.js - About 1 hr to fix

                            Function pricebooksModalHandler has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                    pricebooksModalHandler: function (element) {
                                        const thisInstance = this;
                                        let lineItemRow = element.closest(this.rowClass);
                                        let rowName = lineItemRow.find('.rowName');
                                        app.showRecordsList(
                            Severity: Minor
                            Found in public_html/layouts/basic/modules/Vtiger/resources/Inventory.js - About 1 hr to fix

                              Function registerRecordPreSaveEvent has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                      registerRecordPreSaveEvent: function (form) {
                                          var primaryEmailField = jQuery('[name="email"]');
                                          if (typeof form === 'undefined') {
                                              form = this.getForm();
                                          }
                              Severity: Minor
                              Found in public_html/layouts/basic/modules/Contacts/resources/Detail.js - About 1 hr to fix

                                Function copySelectedOptions has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                        copySelectedOptions: function (source, destination) {
                                            let srcObj = jQuery(source);
                                            let destObj = jQuery(destination);
                                
                                            if (typeof srcObj === 'undefined' || typeof destObj === 'undefined') return;
                                Severity: Minor
                                Found in public_html/layouts/basic/modules/Import/resources/Import.js - About 1 hr to fix

                                  Function validateCustomMap has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          validateCustomMap: function () {
                                              var errorMessage;
                                              var params = {};
                                              var saveMap = jQuery('#save_map').is(':checked');
                                              if (saveMap) {
                                  Severity: Minor
                                  Found in public_html/layouts/basic/modules/Import/resources/Import.js - About 1 hr to fix

                                    Function registerLoadMore has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            registerLoadMore: function registerLoadMore() {
                                                var thisInstance = this;
                                                var parent = thisInstance.getContainer();
                                                var contentContainer = parent.find('.dashboardWidgetContent');
                                                contentContainer.off('click', '.showMoreHistory');

                                      Function registerSaveInventoryColumnSchemeClick has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          registerSaveInventoryColumnSchemeClick() {
                                              this.container.find('.js-save-scheme').on('click', (e) => {
                                                  e.preventDefault();
                                                  e.stopPropagation();
                                                  const loader = $.progressIndicator({
                                      Severity: Minor
                                      Found in public_html/layouts/basic/modules/Vtiger/resources/PDF.js - About 1 hr to fix

                                        Function registerMentionCollection has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                    registerMentionCollection(symbol, searchModule = '-') {
                                                        let self = this;
                                                        return {
                                                            trigger: symbol,
                                                            selectTemplate: function (item) {
                                        Severity: Minor
                                        Found in public_html/layouts/resources/Fields.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language