Showing 4,652 of 306,333 total issues
Function saveAndViewFilter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveAndViewFilter() {
this.saveFilter()
.done(function (data) {
let response = data.result;
if (response && response.success) {
Function sendMailWindow
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sendMailWindow: function (url, popup, postData) {
if (popup) {
let width = screen.width - 15;
let height = screen.height - 150;
let left = 0;
Function registerDayClickEvent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDayClickEvent(info) {
const self = this,
userFormat = App.Fields.Date.dateToUserFormat(info.date);
if (!CONFIG.isQuickCreateSupported) {
app.openUrl(
Function registerReferenceFields
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerReferenceFields: function (container) {
let thisInstance = this;
if (!CONFIG.fieldsReferencesDependent) {
return false;
}
Function registerCheckBoxClickEvent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerCheckBoxClickEvent: function () {
let listViewPageDiv = this.getListViewContainer();
let thisInstance = this;
listViewPageDiv.on('click', '.listViewEntriesCheckBox', function (e) {
let selectedIds = thisInstance.readSelectedIds();
Function registerEditQty
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEditQty: function () {
let thisInstance = this;
let element = this.content.find('.js-edit-qtyproductinstock');
element.validationEngine(app.validationEngineOptions);
element.on('change', (e) => {
Function registerRowChangeEvent
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerRowChangeEvent: function (container) {
container.on('focusout', '.qty', (e) => {
let element = $(e.currentTarget);
element.formatNumber();
this.quantityChangeActions(this.getClosestRow(element));
Function readCondition
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
readCondition(container, skipEmpty) {
let self = this;
let condition = container.find('> .js-condition-switch .js-condition-switch-value').hasClass('active')
? 'AND'
: 'OR';
Function cb
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cb: (modalContainer) => {
modalContainer.find('.js-modal__save').on('click', (e) => {
let element = modalContainer.find('.js-margin');
let resultOfValidation = Vtiger_NumberUserFormat_Validator_Js.invokeValidation(element);
if (typeof resultOfValidation !== 'undefined') {
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', (e) => {
Function addItem
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addItem(module, baseTableId, rowData = false) {
const items = this.getInventoryItemsContainer();
let newRow = this.getBasicRow();
const sequenceNumber = this.getNextLineItemRowNumber();
const replaced = newRow.html().replace(/\_NUM_/g, sequenceNumber);
Function registerRowAutoComplete
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerRowAutoComplete: function (container) {
const thisInstance = this;
let sourceFieldElement = container.find('.sourceField.js-name');
sourceFieldElement.on(Vtiger_Edit_Js.referenceSelectionEvent, function (e, params) {
let record = params.record;
Function registerStep4
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerStep4(stepContainer) {
this.step4.append(stepContainer);
this.stepNumber.val(4);
App.Fields.Picklist.showSelect2ElementView(this.step4.find('select'));
let dividingField = this.step4.find('[name="dividingField"]');
Function loadScrollbar
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadScrollbar: function loadScrollbar() {
let container = $(this.getChartContainer(false));
if (!container.length) {
container = this.getContainerContent();
}
Function registerAutocomplete
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAutocomplete() {
return this.container.find('.js-search-input').autocomplete({
delay: '600',
minLength: '3',
classes: {
Function constructor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(container = $('.js-base-container'), readonly = false, browserHistory = true) {
this.calendarCreateView = false;
this.container = container;
this.calendarView = container.find('.js-calendar__container');
this.readonly = readonly;
Function constructor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(inputDiv = $('.js-completions').eq(0), params = {}) {
if (typeof inputDiv === 'undefined' || inputDiv.length === 0) {
return;
} else if (inputDiv.length === undefined) {
inputDiv = $(inputDiv);
Function showModalHtml
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showModalHtml: function (params) {
let data = '',
icon = '';
let footer = params['footer'] ?? '';
if (params['header']) {
Function validate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function () {
let response = this._super();
if (response === true) {
let fieldValue = this.getFieldValue();
let doubleRegex = /(^[-+]?\d+)(\.\d+)?$/;
Function validate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function () {
var field = this.getElement();
var fieldData = field.data();
var fieldDateFormat = fieldData.dateFormat;
var fieldInfo = fieldData.fieldinfo;