Showing 4,652 of 306,333 total issues
Function registerDeleteWidgetEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDeleteWidgetEvent: function (contents) {
if (typeof contents === 'undefined') {
contents = jQuery('#layoutDashBoards');
}
contents.find('.js-delete-widget').on('click', (e) => {
Function registerFieldChange
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFieldChange() {
$('#saveTask').on('change', 'select[name="fieldname"]', (e) => {
const selectedElement = $(e.currentTarget);
const conditionRow = selectedElement.closest('.js-conditions-row');
if (selectedElement.val() !== 'none' && selectedElement.val()) {
Function validateTaxName
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validateTaxName: function (data) {
var thisInstance = this;
var aDeferred = jQuery.Deferred();
var taxName = data.taxlabel;
Function copyMenu
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
copyMenu: function (fromRole) {
var thisInstance = this;
var aDeferred = jQuery.Deferred();
var progressIndicatorElement = jQuery.progressIndicator({
position: 'html',
Function registerSummationEvent
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSummationEvent: function () {
let thisInstance = this;
this.content.on('click', '.listViewSummation button', function () {
let button = $(this);
let calculateValue = button.closest('td').find('.calculateValue');
Function setCalendarModuleOptions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setCalendarModuleOptions() {
const self = this;
return {
allDaySlot: app.getMainParams('allDaySlot'),
dateClick: (args) => {
Function registerSave
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSave: function () {
this.container.find('.js-modal__save').on('click', (e) => {
e.preventDefault();
let form = this.container.find('form');
if (form.validationEngine('validate')) {
Function getSelectedUsersCalendar
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getSelectedUsersCalendar() {
const sidebar = this.getSidebarView();
let selectedUsers = sidebar.find('.js-input-user-owner-id:checked'),
notSelectedUsers = sidebar.find('.js-input-user-owner-id:not(:checked)'),
selectedUsersAjax = sidebar.find('.js-input-user-owner-id-ajax'),
Function getInstance
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getInstance: function () {
if (Vtiger_List_Js.listInstance === false) {
let module = app.getModuleName(),
parentModule = app.getParentModuleName(),
moduleClassName,
Function registerAccountName
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAccountName: function (container) {
let first = container.find('.js-first-name');
let firstInput = first.find('input');
let last = container.find('.js-last-name');
let lastInput = last.find('input');
Function source
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
source: function (request, response) {
//element will be array of dom elements
//here this refers to auto complete instance
let inputElement = $(this.element[0]);
let searchValue = request.term;
Function enableCopyAddressFromModule
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
enableCopyAddressFromModule: function (moduleName, formElement, className, fieldName, label) {
let thisInstance = this;
formElement
.find('.' + className)
.removeClass('d-none')
Function registerSelectField
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSelectField: function () {
let editInstance = Vtiger_Edit_Js.getInstance(this.module);
let form = this.container.find('form');
this.container.find('.js-changesjson-select').on('change', (e) => {
let element = $(e.currentTarget);
Function requestReminder
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
requestReminder: function () {
let thisInstance = this;
let content = $('.remindersNoticeContainer');
let element = $('.remindersNotice');
let url = 'index.php?module=Calendar&view=Reminders&type_remainder=true';
Function getUi
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getUi: function () {
let comparatorSelectedOptionVal = this.get('comparatorElementVal'),
html,
element;
if (this._specialDateTimeComparator(comparatorSelectedOptionVal)) {
Function loadWidgetsEvents
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadWidgetsEvents: function () {
const thisInstance = this;
app.event.on('DetailView.Widget.AfterLoad', function (e, widgetContent, relatedModuleName, instance) {
if (relatedModuleName === 'Calendar') {
thisInstance.reloadWidgetActivitesStats(widgetContent.closest('.activityWidgetContainer'));
Function registerSetReadRecord
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSetReadRecord: function (detailContentsHolder) {
let thisInstance = this;
detailContentsHolder.on('click', '.setReadRecord', function (e) {
let currentElement = jQuery(e.currentTarget);
currentElement.closest('.btn-group').addClass('d-none');
Function parseOptionsObject
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseOptionsObject: function parseOptionsObject(options, original, afterInit = false) {
let result = {};
for (let propertyName in options) {
let value = options[propertyName];
if (afterInit) {
Function registerChangeConditions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerChangeConditions(container) {
let self = this;
container.on('change', '.js-conditions-fields, .js-conditions-operator', (e) => {
let progress = $.progressIndicator({
position: 'html',
Function registerHeaderActions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerHeaderActions() {
this.headerContainer.find('.js-gantt-header__btn-filter').on('click', (e) => {
e.preventDefault();
this.showFiltersModal();
});