YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/modules/Vtiger/resources/RelatedCommentModal.min.js.map

Summary

Maintainability
Test Coverage
{"version":3,"file":"RelatedCommentModal.min.js","sources":["RelatedCommentModal.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\njQuery.Class('Vtiger_RelatedCommentModal_Js', {\n\twindowParent: app.getWindowParent(),\n\t/*\n\t * Function to register the click event for generate button\n\t */\n\tregisterSubmitEvent: function (container) {\n\t\tconst self = this;\n\t\tcontainer.find('[name=\"saveButton\"]').on('click', function (e) {\n\t\t\tvar progressLoader = $.progressIndicator({\n\t\t\t\tposition: 'html',\n\t\t\t\tblockInfo: {\n\t\t\t\t\tenabled: true\n\t\t\t\t}\n\t\t\t});\n\t\t\tvar comment = container.find('.comment').val();\n\t\t\tvar params = {\n\t\t\t\tmodule: self.windowParent.app.getModuleName(),\n\t\t\t\trecord: self.windowParent.app.getRecordId(),\n\t\t\t\taction: 'RelatedCommentModal',\n\t\t\t\tmode: 'update',\n\t\t\t\tcomment: comment,\n\t\t\t\trelid: container.find('.relatedRecord').val(),\n\t\t\t\trelmodule: container.find('.relatedModuleName').val()\n\t\t\t};\n\t\t\tAppConnector.request(params)\n\t\t\t\t.done(function (data) {\n\t\t\t\t\tVtiger_Helper_Js.showMessage({ text: data.result });\n\t\t\t\t\tapp.hideModalWindow();\n\t\t\t\t\tprogressLoader.progressIndicator({ mode: 'hide' });\n\t\t\t\t\tself.windowParent.Vtiger_Detail_Js.getInstance().reloadTabContent();\n\t\t\t\t})\n\t\t\t\t.fail(function (error) {\n\t\t\t\t\tprogressLoader.progressIndicator({ mode: 'hide' });\n\t\t\t\t});\n\t\t});\n\t},\n\tregisterEvents: function () {\n\t\tvar container = $('#modalRelatedCommentModal');\n\t\tnew App.Fields.Text.Completions(container.find('.js-completions'));\n\t\tthis.registerSubmitEvent(container);\n\t}\n});\n$(function () {\n\tvar instance = new Vtiger_RelatedCommentModal_Js();\n\tinstance.registerEvents();\n});\n"],"names":["jQuery","Class","windowParent","app","getWindowParent","registerSubmitEvent","container","self","find","on","progressLoader","$","progressIndicator","position","blockInfo","enabled","comment","val","params","module","getModuleName","record","getRecordId","action","mode","relid","relmodule","AppConnector","request","done","data","Vtiger_Helper_Js","showMessage","text","result","hideModalWindow","Vtiger_Detail_Js","getInstance","reloadTabContent","fail","registerEvents","App","Fields","Text","Completions","instance","Vtiger_RelatedCommentModal_Js"],"mappings":";;AAAA,kKACA,YAAY,CAEZA,MAAM,CAACC,KAAK,CAAC,+BAA+B,CAAE,CAC7CC,YAAY,CAAEC,GAAG,CAACC,eAAe,EAAE;AAEpC;AACA,IACCC,mBAAmB,CAAE,SAAAA,mBAAAA,CAAUC,SAAS,CAAE,CACzC,IAAMC,IAAI,CAAG,IAAI,CACjBD,SAAS,CAACE,IAAI,CAAC,uBAAqB,CAAC,CAACC,EAAE,CAAC,OAAO,CAAE,UAAa,CAAA,IAC1DC,cAAc,CAAGC,CAAC,CAACC,iBAAiB,CAAC,CACxCC,QAAQ,CAAE,MAAM,CAChBC,SAAS,CAAE,CACVC,OAAO,CAAA,CAAA,CACR,CACD,CAAC,CAAC,CACEC,OAAO,CAAGV,SAAS,CAACE,IAAI,CAAC,UAAU,CAAC,CAACS,GAAG,EAAE,CAC1CC,MAAM,CAAG,CACZC,MAAM,CAAEZ,IAAI,CAACL,YAAY,CAACC,GAAG,CAACiB,aAAa,EAAE,CAC7CC,MAAM,CAAEd,IAAI,CAACL,YAAY,CAACC,GAAG,CAACmB,WAAW,EAAE,CAC3CC,MAAM,CAAE,qBAAqB,CAC7BC,IAAI,CAAE,QAAQ,CACdR,OAAO,CAAEA,OAAO,CAChBS,KAAK,CAAEnB,SAAS,CAACE,IAAI,CAAC,gBAAgB,CAAC,CAACS,GAAG,EAAE,CAC7CS,SAAS,CAAEpB,SAAS,CAACE,IAAI,CAAC,oBAAoB,CAAC,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