public_html/layouts/basic/modules/Calendar/resources/SendInvitationModal.min.js
'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";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}jQuery.Class("Calendar_SendInvitationModal_JS",{},{/**
* Modal container
*/container:!1,/**
* Open mail client
*/openMailClient:function openMailClient(){var _this=this;$(".js-modal__save",this.container).on("click",function(){var url="index.php?module=OSSMail&view=Compose",formData=_this.container.find("form").serializeFormData();for(var i in formData){var value="object"===_typeof(formData[i])?formData[i].join(","):formData[i];url+="&".concat(i,"=")+encodeURIComponent(value);}Vtiger_Index_Js.sendMailWindow(url,!0),app.hideModalWindow(!1,_this.container.closest(".js-modal-container")[0].id);});},/**
* Register modal events
* @param {jQuery} modalContainer
*/registerEvents:function registerEvents(modalContainer){this.container=modalContainer,this.openMailClient();}});
//# sourceMappingURL=SendInvitationModal.min.js.map