YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/ProjectTask/resources/Edit.min.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */"use strict";Vtiger_Edit_Js("ProjectTask_Edit_Js",{},{/**
         * Function to get popup params
         */getRecordsListParams:function getRecordsListParams(container){var form,parentIdElement,closestContainer,params=this._super(container),sourceFieldElement=jQuery("input[class=\"sourceField\"]",container);return "projectmilestoneid"==sourceFieldElement.attr("name")&&(form=this.getForm(),parentIdElement=form.find("[name=\"projectid\"]"),0<parentIdElement.length&&0<parentIdElement.val().length&&0!=parentIdElement.val()&&(closestContainer=parentIdElement.closest(".fieldValue"),params.related_parent_id=parentIdElement.val(),params.related_parent_module=closestContainer.find("[name=\"popupReferenceModule\"]").val())),"parentid"==sourceFieldElement.attr("name")&&(form=this.getForm(),parentIdElement=form.find("[name=\"projectmilestoneid\"]"),0<parentIdElement.length&&0<parentIdElement.val().length&&0!=parentIdElement.val()&&(closestContainer=parentIdElement.closest(".fieldValue"),params.related_parent_id=parentIdElement.val(),params.related_parent_module=closestContainer.find("[name=\"popupReferenceModule\"]").val())),params}});
//# sourceMappingURL=Edit.min.js.map