Showing 4,652 of 306,333 total issues
Function registerEmptyRecycle
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEmptyRecycle: function () {
const self = this,
container = this.getListViewContainer();
container.find('.js-recycle-empty').on('click', function () {
app.showConfirmModal({
Function registerListViewSelect
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerListViewSelect: function () {
let self = this,
listViewContainer = this.getContainer();
listViewContainer.find('.listViewEntriesTable .select2noactive').each((index, domElement) => {
let select = $(domElement);
Function getDefaultParams
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDefaultParams: function () {
let container = this.getRelatedContainer();
let params = Object.assign({}, this.defaultParams);
params['page'] = this.getCurrentPageNum();
params['orderby'] = this.getOrderBy();
Function getDefaultParams
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getDefaultParams: function () {
let params = {
module: app.getModuleName(),
view: app.getViewName(),
viewname: this.getCurrentCvId(),
Function registerEventForCopyBlockAddress
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerEventForCopyBlockAddress: function (moduleName, fieldName) {
const self = this;
if (moduleName == 'Accounts') {
self.enableCopyAddressFromModule(
moduleName,
Function initDiscountsParameters
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initDiscountsParameters: function (parentRow, modal) {
let parameters = parentRow.find('.discountParam').val();
if (parameters == '' || parameters == undefined) {
return;
}
Function getTax
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getTax: function (row) {
const self = this;
let taxParams = row.find('.taxParam').val();
if (taxParams == '' || taxParams == '[]' || taxParams == undefined) return 0;
taxParams = JSON.parse(taxParams);
Function loadSubProducts
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadSubProducts: function (parentRow, indicator) {
let thisInstance = this;
let progressInstace;
let recordId = $('input.sourceField', parentRow).val();
let recordModule = parentRow.find('.rowName input[name="popupReferenceModule"]').val();
Function getAllTaxes
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAllTaxes: function () {
let thisInstance = this;
let tax = [];
let typeSummary = $('.aggregationTypeTax').val();
this.getInventoryItemsContainer()
Function registerSortableItems
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerSortableItems: function () {
let thisInstance = this;
let items = thisInstance.getInventoryItemsContainer();
items.sortable({
handle: '.dragHandle',
Function registerStep2
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerStep2(stepContainer) {
this.step2.append(stepContainer);
this.stepNumber.val(2);
this.footer.hide();
let filtersIdElement = this.step2.find('.filtersId');
Function saveCurrencies
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
saveCurrencies(modalContainer) {
let enabledBaseCurrency = modalContainer.find('.js-enable-currency').filter(':checked');
if (enabledBaseCurrency.length < 1) {
Vtiger_Helper_Js.showMessage({
text: app.vtranslate('JS_PLEASE_SELECT_BASE_CURRENCY_FOR_PRODUCT'),
Function openListInModal
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
openListInModal: function () {
$('.js-open-list-in-modal').on('click', function () {
let element = $(this),
moduleName = element.data('module-name'),
type = '',
Function registerMentions
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerMentions() {
let minSerchTextLength = app.getMainParams('gsMinLength');
return [
{
feed: this.getMentionUsersData.bind(this),
Function init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init() {
let addButton = $('.js-meeting-add', this.container);
if (!addButton.length) {
return false;
}
Function registerPopoverManualTrigger
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerPopoverManualTrigger(element, manualTriggerDelay) {
const hideDelay = 500;
element.on('mouseleave', (e) => {
setTimeout(() => {
let currentPopover = this.getBindedPopover(element);
Function registerBlockAnimationEvent
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
registerBlockAnimationEvent: function (container = false) {
let detailViewContentHolder = $('div.details div.contents');
let blockHeader = detailViewContentHolder.find('.blockHeader');
if (container !== false) {
blockHeader = container.find('.blockHeader');
Method testCreateTemplate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testCreateTemplate()
{
$this->fileName = uniqid() . '.pdf';
$pdfModel = \Settings_PDF_Record_Model::getCleanInstance(self::MODULE_NAME);
$pdfModel->set('module_name', self::MODULE_NAME);
Method testDeleteNewField
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testDeleteNewField($type, $param, $suffix = '')
{
$key = $type . $suffix;
$fieldInstance = \Settings_LayoutEditor_Field_Model::getInstance(self::$fieldsId[$key]);
$uitype = $fieldInstance->getUIType();
Method testResetPassword
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function testResetPassword(): void
{
$request = $this->httpClient->post('Users/ResetPassword', \App\Utils::merge(
[
'json' => [