Showing 4,652 of 306,333 total issues
Function getFreeTime
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFreeTime: function (container) {
let ownerId = container.find('[name="assigned_user_id"], [data-element-name="assigned_user_id"]');
if (ownerId.length === 0 || !ownerId.val()) {
return;
}
Function getParams
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getParams: function () {
let params = {
module: this.moduleName,
view: this.container.data('view'),
src_module: this.container.find('.js-parent-module').val(),
Function registerBasicEvents
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerBasicEvents: function (container) {
this.registerEventForEditor();
this.stretchCKEditor();
this.referenceModulePopupRegisterEvent(container);
this.registerAutoCompleteFields(container);
Function generateDaysList
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateDaysList() {
const datesView = this.container.find('.js-dates-row'),
activeDays = moment(this.fullCalendar.view.currentStart).format('DDD'),
nextDays = moment(this.fullCalendar.view.currentStart).add(7, 'days');
let prevDays = moment(this.fullCalendar.view.currentStart).subtract(5, 'days'),
Function saveWidget
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveWidget: function (form, mode, sourceModule, linkid, type) {
let aDeferred = $.Deferred();
let progressIndicatorElement = $.progressIndicator({
position: 'html',
blockInfo: {
Function registerBlockStatusCheckOnLoad
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerBlockStatusCheckOnLoad: function () {
let blocks = this.getForm().find('.js-toggle-panel');
let module = this.moduleName;
blocks.each(function (index, block) {
let currentBlock = $(block);
Function registerEventForActivityWidget
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEventForActivityWidget: function () {
let thisInstance = this;
/*
* Register click event for add button in Related Activities widget
Function generateChartData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateChartData: function () {
const thisInstance = this,
container = this.getContainer(),
jData = container.find('.widgetData').val(),
data = JSON.parse(jData);
Function timeCounter
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
timeCounter: function () {
if (this.counter === false) {
this.sec = parseInt(this.sec);
this.min = parseInt(this.min);
this.hr = parseInt(this.hr);
Function getFieldSpecificUi
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getFieldSpecificUi: function (fieldSelectElement) {
let fieldModel = this.fieldModelInstance,
html;
if (fieldModel.get('comparatorElementVal') === 'd') {
html = '<div class="checkbox"><label><input type="checkbox" name="' + fieldModel.getName() + '" value="0" ';
Function jumpToPage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
jumpToPage(e) {
const self = this,
listViewPageDiv = this.getListViewContainer();
if (13 === e.which) {
e.stopImmediatePropagation();
Function registerSortable
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSortable: function () {
const boards = this.container.find('.js-kanban-records');
boards.sortable({
containment: this.container,
items: boards.find('.js-kanban-record'),
Function checkLimits
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkLimits: function () {
const account = this.getAccountId(),
limit = parseInt(app.getMainParams('inventoryLimit'));
let response = true;
if (account == '' || this.limitEnableSave || !limit) {
Function generateTree
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateTree: function (container) {
let thisInstance = this;
if (thisInstance.treeInstance == false) {
thisInstance.treeInstance = container.find('#treePopupContents');
let plugins = ['search', 'category'];
Function updateEvent
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateEvent(info) {
const progressInstance = jQuery.progressIndicator({ blockInfo: { enabled: true } });
AppConnector.request({
module: this.module ? this.module : CONFIG.module,
action: 'Calendar',
Function itemRenderer
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
itemRenderer: function (li, value) {
if (value.message_html) {
var val = $('<span />').addClass(csscls('value')).html(value.message_html).appendTo(li);
} else {
var m = value.message;
Function initEditView
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initEditView() {
this.fileInput.detach();
this.container.on('mouseup', this.openBrowser.bind(this));
this.fileInput.fileupload({
dataType: 'json',
Function registerPopover
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPopover(container = $(document)) {
window.popoverCache = {};
container.on('mousemove', (e) => {
app.mousePosition = { x: e.pageX, y: e.pageY };
});
Function validate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate: function (dependentFieldList) {
let thisInstance = this;
let field = this.getElement();
let fieldDateTime = '';
let fieldDateTimeInstance = [];
Function requestForm
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
requestForm: function (url, postData = {}, formAttr = {}) {
$.extend(formAttr, {
method: 'post',
action: url,
style: 'display:none;'