YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/Vtiger/resources/ChangeRelationData.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";$.Class("Base_ChangeRelationData_JS",{},{registerEvents:function registerEvents(container){var form=container.find("form");form.validationEngine(app.validationEngineOptions),container.find(".js-modal__save").on("click",function(){if(form.validationEngine("validate")){var progress=$.progressIndicator({position:"html",blockInfo:{enabled:!0}}),params=container.find("form").serializeFormData();AppConnector.request(params).done(function(data){progress.progressIndicator({mode:"hide"}),app.hideModalWindow();var params={};if(data.result){params={text:app.vtranslate("JS_SAVE_NOTIFY_OK"),type:"success"};var detailInstance=Vtiger_Detail_Js.getInstance(),selectedTabElement=detailInstance.getSelectedTab();selectedTabElement&&selectedTabElement.trigger("click");}else params={text:app.vtranslate("JS_ERROR"),type:"error"};app.showNotify(params);}).fail(function(){});}});}});
//# sourceMappingURL=ChangeRelationData.min.js.map