Showing 4,652 of 306,333 total issues
Function saveTaxDetails
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveTaxDetails: function (form, currentTrElement) {
var thisInstance = this;
var params = form.serializeFormData();
if (typeof params === 'undefined') {
Function validate
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate() {
let aDeferred = $.Deferred();
let result = this.form.validationEngine('validate');
if (result) {
this.saveAjax({
Function initEvents
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEvents: function () {
var thisInstance = this;
var container = $('.UserColors');
container.find('.updateUserColor').on('click', function (e) {
thisInstance.updateUserColor(e, thisInstance);
Function addDetails
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addDetails: function (details) {
let container = jQuery('#inventory'),
currency = jQuery('#currency'),
symbol = '%',
table = $('.inventoryTable', container);
Function updateTaxStatus
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateTaxStatus: function (currentTarget) {
var aDeferred = jQuery.Deferred();
var currentTrElement = currentTarget.closest('tr');
var taxId = currentTrElement.data('taxid');
Function registerFilterChange
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerFilterChange: function (e) {
var thisInstance = this;
var aDeferred = $.Deferred();
var progress = $.progressIndicator({
message: app.vtranslate('JS_LOADING_PLEASE_WAIT'),
Function getRelatedPageCount
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getRelatedPageCount: function () {
let aDeferred = jQuery.Deferred();
let element = this.content.find('#totalPageCount');
let totalCountElem = this.content.find('#totalCount');
let totalPageNumber = element.text();
Function confirmedCallback
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
confirmedCallback: () => {
var module = app.getModuleName();
var postData = {
module: module,
action: 'DeleteAjax',
Function registerSubmitEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitEvent: function (container) {
const self = this;
container.find('[name="saveButton"]').on('click', function (e) {
var progressLoader = $.progressIndicator({
position: 'html',
Function rssFeedSave
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rssFeedSave: function (form) {
var thisInstance = this;
var data = form.serializeFormData();
var progressIndicatorElement = jQuery.progressIndicator({
position: 'html',
Function registerEventForRelatedList
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEventForRelatedList: function () {
const self = this;
let detailContentsHolder = this.getContentHolder();
let relatedModuleName = self.getRelatedModuleName();
if (relatedModuleName) {
Function registerSubmitEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSubmitEvent: function () {
let editViewForm = this.getForm();
editViewForm.on('submit', function (e) {
//Form should submit only once for multiple clicks also
if (typeof editViewForm.data('submit') !== 'undefined') {
Function registerClearFilterButton
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerClearFilterButton() {
const sidebar = this.getSidebarView(),
clearBtn = this.calendarView.find('.js-calendar__clear-filters');
app.showPopoverElementView(clearBtn);
clearBtn.on('click', () => {
Function pricebooksModalHandler
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
pricebooksModalHandler: function (element) {
const thisInstance = this;
let lineItemRow = element.closest(this.rowClass);
let rowName = lineItemRow.find('.rowName');
app.showRecordsList(
Function registerRecordPreSaveEvent
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerRecordPreSaveEvent: function (form) {
var primaryEmailField = jQuery('[name="email"]');
if (typeof form === 'undefined') {
form = this.getForm();
}
Function copySelectedOptions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
copySelectedOptions: function (source, destination) {
let srcObj = jQuery(source);
let destObj = jQuery(destination);
if (typeof srcObj === 'undefined' || typeof destObj === 'undefined') return;
Function validateCustomMap
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validateCustomMap: function () {
var errorMessage;
var params = {};
var saveMap = jQuery('#save_map').is(':checked');
if (saveMap) {
Function registerLoadMore
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerLoadMore: function registerLoadMore() {
var thisInstance = this;
var parent = thisInstance.getContainer();
var contentContainer = parent.find('.dashboardWidgetContent');
contentContainer.off('click', '.showMoreHistory');
Function registerSaveInventoryColumnSchemeClick
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSaveInventoryColumnSchemeClick() {
this.container.find('.js-save-scheme').on('click', (e) => {
e.preventDefault();
e.stopPropagation();
const loader = $.progressIndicator({
Function registerMentionCollection
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerMentionCollection(symbol, searchModule = '-') {
let self = this;
return {
trigger: symbol,
selectTemplate: function (item) {