Showing 4,652 of 306,333 total issues
Function registerSelectAllModulesEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSelectAllModulesEvent: function () {
var moduleCheckBoxes = jQuery('.modulesCheckBox');
var viewAction = jQuery('#mainAction4CheckBox');
var editAction = jQuery('#mainAction1CheckBox');
var deleteAction = jQuery('#mainAction2CheckBox');
Function onValidationComplete
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
params.onValidationComplete = function (form, valid) {
if (valid) {
var progressInstance = jQuery.progressIndicator({
position: 'html',
blockInfo: {
Function registerDragDropEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDragDropEvent: function (contentData) {
if (contentData == undefined) {
return;
}
const thisInstance = this;
Function updateSequenceRelatedModule
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateSequenceRelatedModule: function () {
var modules = [];
var relatedModulesContainer = $('.relatedModulesList');
var params = {};
var progressIndicatorElement = $.progressIndicator({
Function registerCheckVerificationCode
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerCheckVerificationCode: function () {
this.container.find('button.js-email-verification-modal__back').on('click', () => {
this.container.find('input:visible').val('');
this.toggleForms();
});
Function updateBlockStatus
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateBlockStatus: function (currentTarget) {
var blockStatus = currentTarget.data('visible');
var progressIndicatorElement = $.progressIndicator({
position: 'html',
blockInfo: {
Function registerModulePickListChangeEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerModulePickListChangeEvent: function () {
var thisInstance = this;
var container = jQuery('.picklistViewContentDiv');
container.find('.modulePickList').on('change', function (e) {
var progressIndicatorElement = jQuery.progressIndicator({
Function registerStatsEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerStatsEvent: function () {
var thisInstance = this;
jQuery('.statsData .btn').on('click', function (e) {
var progress = $.progressIndicator({
position: 'html',
Function registerUploadButton
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerUploadButton: function (form) {
form.on('submit', function (e) {
e.preventDefault();
if (form.validationEngine('validate') === true) {
app.removeEmptyFilesInput(form[0]);
Function registerSaveEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSaveEvent: function (mode, data, reload) {
var params = {};
params.data = {
module: app.getModuleName(),
parent: app.getParentModuleName(),
Function registerSave
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSave: function (container) {
container.validationEngine(app.validationEngineOptions);
container.find('.saveGlobal').on('click', (e) => {
if (!container.validationEngine('validate')) {
app.formAlignmentAfterValidation(container);
Function LoadEditLang
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
LoadEditLang: function (e) {
var element = jQuery(e);
var position = element.attr('href');
if (typeof position === 'undefined') {
position = '#' + element.attr('id');
Function registerAdvancedConditionsEvents
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
static registerAdvancedConditionsEvents(container) {
const self = this;
const builder = container.find('.js-adv-condition-builder-view');
const relationSelect = container.find('.js-relation-select');
if (relationSelect.val() != 0) {
Function registerRssButtonClickEvent
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerRssButtonClickEvent: function (container) {
var thisInstance = this;
container.on('click', '.rssAddButton', function (e) {
thisInstance.showRssModal('getRssAddForm').done(function (data) {
var callBackFunction = function (data) {
Function registerDelBtnClick
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerDelBtnClick(container) {
container.find('.js-delete-row-action').on('click', (e) => {
e.preventDefault();
e.stopPropagation();
const row = $(e.target).closest('.js-custom-row');
Function select
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
select: (event, ui) => {
let selected = ui.item;
//To stop selection if no results is selected
if (typeof selected.type !== 'undefined' && selected.type == 'no results') {
return false;
Function triggerTransferOwnership
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
triggerTransferOwnership: function (massActionUrl) {
let thisInstance = this;
thisInstance.getRelatedModulesContainer = false;
let actionParams = {
type: 'POST',
Function saveComment
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveComment: function (e) {
let aDeferred = jQuery.Deferred(),
currentTarget = jQuery(e.currentTarget),
commentMode = currentTarget.data('mode'),
closestCommentBlock = currentTarget.closest('.js-add-comment-block'),
Function _search
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_search: function (params) {
let aDeferred = jQuery.Deferred();
if (typeof params === 'undefined') {
params = {};
}
Function registerMenu
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerMenu: function () {
const self = this;
self.keyboard = { DOWN: 40, ESCAPE: 27, LEFT: 37, RIGHT: 39, SPACE: 32, UP: 38 };
self.sidebarBtn = $('.js-sidebar-btn').first();
self.sidebar = $('.js-sidebar').first();