Showing 4,652 of 306,333 total issues
Function registerRefreshStatus
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerRefreshStatus: function () {
let form = this.getForm();
form.find('.js-refresh-status').on('click', function () {
const progressIndicator = $.progressIndicator({
blockInfo: { enabled: true }
Function showEditView
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showEditView(params) {
AppConnector.request(params).done((data) => {
app.showModalWindow(data, (container) => {
App.Fields.Icon.register(container);
container.find('.js-modal__save').on('click', (e, skipConfirmation) => {
Function renderBusinessHours
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderBusinessHours(rows) {
let html = `<table class="table table-sm js-business-hours-table" data-js="container">`;
html += `<thead>
<tr>
<th colspan="6" class="text-center">${app.vtranslate('JS_BUSINESS_HOURS')}</th>
Function usersFilter
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
usersFilter: function () {
$('#usersFilter').on('change', () => {
const progressInstance = $.progressIndicator({
position: 'html',
blockInfo: {
Function registerSubmitForm
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitForm: function () {
let form = this.getForm();
form.on('submit', function (e) {
e.preventDefault();
if (form.validationEngine('validate') === true) {
Function registerChangeVal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerChangeVal: function ($container) {
$container.on('change', 'select', (e) => {
let $target = $(e.currentTarget);
let isMultiple = $target.attr('multiple');
if ($target.validationEngine('validate')) {
Function saveConfig
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveConfig: function () {
jQuery('.js-config-field').on('change', function () {
var status = jQuery(this).val();
AppConnector.request({
module: 'RealizationProcesses',
Function registerPopUpSaveEvent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPopUpSaveEvent: function (data, fieldUiHolder) {
jQuery('[name="saveButton"]', data).on('click', function (e) {
var valueType = jQuery('.textType', data).val();
fieldUiHolder.find('[name="valuetype"]').val(valueType);
Function registerSave
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSave: function () {
let tab = $('#my-tab-content');
tab.find('input').on('change', function () {
let name = this.name;
let checked = this.checked;
Function checkDuplicateName
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkDuplicateName: function (details) {
var aDeferred = jQuery.Deferred();
var taxName = details.taxlabel;
var taxId = details.taxid;
var moduleName = app.getModuleName();
Function registerSubmit
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmit: function () {
var container = this.getForm();
var form = container.find('form');
form.on('submit', function (e) {
e.preventDefault();
Function registerUpdateLanguageBtn
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerUpdateLanguageBtn(container) {
container.find('.js-update').on('click', function (e) {
let icon = $(e.target).find('.js-update__icon'),
progress = $.progressIndicator({
message: app.vtranslate('JS_LOADING_PLEASE_WAIT'),
Function registerAddInvitation
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerAddInvitation(container) {
container.find('.js-btn-add-invitation').on('click', (e) => {
let progressIndicatorElement = $.progressIndicator();
app.showModalWindow(null, 'index.php?module=Calendar&view=InviteEmail', (data) => {
data.find('.js-modal__save').on('click', (e) => {
Function saveFieldValues
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveFieldValues: function (fieldDetailList) {
var aDeferred = jQuery.Deferred();
var recordId = this.getRecordId();
var data = {};
Function showAnnouncement
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
showAnnouncement: function () {
let thisInstance = this;
let announcementContainer = $('#announcements');
let announcements = announcementContainer.find('.announcement');
if (announcements.length > 0) {
Function registerPopUpSaveEvent
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPopUpSaveEvent: function (data, fieldUiHolder) {
jQuery('[name="saveButton"]', data).on('click', function (e) {
var valueType = jQuery('.textType', data).val();
fieldUiHolder.find('[name="valuetype"]').val(valueType);
Function getInstanceByModuleName
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getInstanceByModuleName: function (moduleName) {
if (typeof moduleName === 'undefined') {
moduleName = app.getModuleName();
}
let parentModule = app.getParentModuleName(),
Function source
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
source: function (request, response) {
AppConnector.request({
module: self.moduleName,
action: 'Fields',
mode: 'findAddress',
Function registerCommentEventsInDetail
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerCommentEventsInDetail(widgetContainer) {
new App.Fields.Text.Completions($('.js-completions').eq(0));
widgetContainer.on('change', '.js-hierarchy-comments', function (e) {
let hierarchy = [];
widgetContainer.find('.js-hierarchy-comments').each(function () {
Function massUpdatePagination
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
massUpdatePagination(urlParams = []) {
const self = this,
listViewPageDiv = this.getListViewContainer();
let paginationObject = listViewPageDiv.find('.js-pagination-list'),
totalCount = paginationObject.data('totalCount'),