Showing 4,652 of 306,333 total issues
Function confirmedCallback
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
let progressIndicatorElement = jQuery.progressIndicator({
message: app.vtranslate('JS_2FA_OFF_IN_PROGRESS'),
position: 'html',
blockInfo: {
Function registerDeleteCustomFieldEvent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
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
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
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
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
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
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
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
Open
action: function (data) {
var inst = $.jstree.reference(data.reference);
var ids = inst.get_selected();
var showInfo = false;
for (var i in ids) {
Function registerRefresh
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
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
Open
loadContent: function (mode, page, modeParams) {
const thisInstance = this;
let container = $('.indexContainer');
let params = {
mode: mode,
Function getAdvanceSearch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAdvanceSearch: function () {
var aDeferred = $.Deferred();
var searchModule = this.getSearchModule();
//Exists in the cache
if (searchModule in Vtiger_AdvanceSearch_Js.cache) {
Function registerEditListPrice
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEditListPrice: function () {
let thisInstance = this;
let element = this.content.find('.js-edit-listprice');
element.validationEngine(app.validationEngineOptions);
element.on('change', function (e) {
Function registerEditQtyProducts
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEditQtyProducts: function () {
let thisInstance = this;
let element = this.content.find('.js-edit-qtyinstock');
element.validationEngine(app.validationEngineOptions);
element.on('change', function (e) {
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;
Function initiateSearch
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initiateSearch: function () {
var aDeferred = $.Deferred();
var thisInstance = this;
var postLoad = function (uiData) {
thisInstance.setContainer($('#advanceSearchContainer'));
Function markSelectedRecords
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
markSelectedRecords: function () {
var thisInstance = this;
var selectedIds = this.readSelectedIds();
if (selectedIds != '') {
if (selectedIds == 'all') {