YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
Test Coverage
{"version":3,"file":"Edit.min.js","sources":["Edit.js"],"sourcesContent":["/* {[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]} */\n'use strict';\n\nVtiger_Edit_Js(\n\t'ProjectTask_Edit_Js',\n\t{},\n\t{\n\t\t/**\n\t\t * Function to get popup params\n\t\t */\n\t\tgetRecordsListParams: function (container) {\n\t\t\tlet params = this._super(container);\n\t\t\tlet sourceFieldElement = jQuery('input[class=\"sourceField\"]', container);\n\t\t\tlet form, parentIdElement, closestContainer;\n\t\t\tif (sourceFieldElement.attr('name') == 'projectmilestoneid') {\n\t\t\t\tform = this.getForm();\n\t\t\t\tparentIdElement = form.find('[name=\"projectid\"]');\n\t\t\t\tif (parentIdElement.length > 0 && parentIdElement.val().length > 0 && parentIdElement.val() != 0) {\n\t\t\t\t\tclosestContainer = parentIdElement.closest('.fieldValue');\n\t\t\t\t\tparams['related_parent_id'] = parentIdElement.val();\n\t\t\t\t\tparams['related_parent_module'] = closestContainer.find('[name=\"popupReferenceModule\"]').val();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sourceFieldElement.attr('name') == 'parentid') {\n\t\t\t\tform = this.getForm();\n\t\t\t\tparentIdElement = form.find('[name=\"projectmilestoneid\"]');\n\t\t\t\tif (parentIdElement.length > 0 && parentIdElement.val().length > 0 && parentIdElement.val() != 0) {\n\t\t\t\t\tclosestContainer = parentIdElement.closest('.fieldValue');\n\t\t\t\t\tparams['related_parent_id'] = parentIdElement.val();\n\t\t\t\t\tparams['related_parent_module'] = closestContainer.find('[name=\"popupReferenceModule\"]').val();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn params;\n\t\t}\n\t}\n);\n"],"names":["Vtiger_Edit_Js","getRecordsListParams","container","form","parentIdElement","closestContainer","params","_super","sourceFieldElement","jQuery","attr","getForm","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