File manager - Edit - /home/opticamezl/www/newok/com_mails.tar
Back
js/admin-email-template-edit.min.js 0000644 00000003450 15172670477 0013233 0 ustar 00 /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */((a,s)=>{class l{constructor(t,i){this.form=t,this.inputSubject=this.form.querySelector("#jform_subject"),this.inputBody=this.form.querySelector("#jform_body"),this.inputHtmlBody=this.form.querySelector("#jform_htmlbody"),this.templateData=i&&i.templateData?i.templateData:{},this.form.EmailTemplateEdit=this}setBodyValue(t){s.editors.instances[this.inputBody.id]?s.editors.instances[this.inputBody.id].setValue(t):this.inputBody.value=t}setHtmlBodyValue(t){s.editors.instances[this.inputHtmlBody.id]?s.editors.instances[this.inputHtmlBody.id].setValue(t):this.inputHtmlBody.value=t}insertTag(t,i){if(!t)return!1;let e;switch(i){case"body":e=this.inputBody;break;case"htmlbody":e=this.inputHtmlBody;break;default:return!1}return s.editors.instances[e.id]?s.editors.instances[e.id].replaceSelection(t):e.value+=` ${t}`,!0}bindListeners(){a.querySelector("#btnResetSubject").addEventListener("click",e=>{e.preventDefault(),this.inputSubject.value=this.templateData.subject?this.templateData.subject:""});const t=a.querySelector("#btnResetBody");t&&t.addEventListener("click",e=>{e.preventDefault(),this.setBodyValue(this.templateData.body?this.templateData.body:"")});const i=a.querySelector("#btnResetHtmlBody");i&&i.addEventListener("click",e=>{e.preventDefault(),this.setHtmlBodyValue(this.templateData.htmlbody?this.templateData.htmlbody:"")}),this.form.querySelectorAll(".edit-action-add-tag").forEach(e=>{e.addEventListener("click",d=>{d.preventDefault();const r=d.target;this.insertTag(r.dataset.tag,r.dataset.target)})})}}a.addEventListener("DOMContentLoaded",()=>{new l(a.getElementById("item-form"),s.getOptions("com_mails")).bindListeners()})})(document,Joomla); js/admin-email-template-edit-es5.js 0000644 00000007005 15172670477 0013143 0 ustar 00 (function () { 'use strict'; /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (document, Joomla) { var EmailTemplateEdit = /*#__PURE__*/function () { function EmailTemplateEdit(form, options) { // Set elements this.form = form; this.inputSubject = this.form.querySelector('#jform_subject'); this.inputBody = this.form.querySelector('#jform_body'); this.inputHtmlBody = this.form.querySelector('#jform_htmlbody'); // Set options this.templateData = options && options.templateData ? options.templateData : {}; // Add back reference this.form.EmailTemplateEdit = this; } var _proto = EmailTemplateEdit.prototype; _proto.setBodyValue = function setBodyValue(value) { if (Joomla.editors.instances[this.inputBody.id]) { Joomla.editors.instances[this.inputBody.id].setValue(value); } else { this.inputBody.value = value; } }; _proto.setHtmlBodyValue = function setHtmlBodyValue(value) { if (Joomla.editors.instances[this.inputHtmlBody.id]) { Joomla.editors.instances[this.inputHtmlBody.id].setValue(value); } else { this.inputHtmlBody.value = value; } }; _proto.insertTag = function insertTag(tag, targetField) { if (!tag) return false; var input; switch (targetField) { case 'body': input = this.inputBody; break; case 'htmlbody': input = this.inputHtmlBody; break; default: return false; } if (Joomla.editors.instances[input.id]) { Joomla.editors.instances[input.id].replaceSelection(tag); } else { input.value += " " + tag; } return true; }; _proto.bindListeners = function bindListeners() { var _this = this; document.querySelector('#btnResetSubject').addEventListener('click', function (event) { event.preventDefault(); _this.inputSubject.value = _this.templateData.subject ? _this.templateData.subject : ''; }); var btnResetBody = document.querySelector('#btnResetBody'); if (btnResetBody) { btnResetBody.addEventListener('click', function (event) { event.preventDefault(); _this.setBodyValue(_this.templateData.body ? _this.templateData.body : ''); }); } var btnResetHtmlBody = document.querySelector('#btnResetHtmlBody'); if (btnResetHtmlBody) { btnResetHtmlBody.addEventListener('click', function (event) { event.preventDefault(); _this.setHtmlBodyValue(_this.templateData.htmlbody ? _this.templateData.htmlbody : ''); }); } // Buttons for inserting a tag this.form.querySelectorAll('.edit-action-add-tag').forEach(function (button) { button.addEventListener('click', function (event) { event.preventDefault(); var el = event.target; _this.insertTag(el.dataset.tag, el.dataset.target); }); }); }; return EmailTemplateEdit; }(); document.addEventListener('DOMContentLoaded', function () { var editor = new EmailTemplateEdit(document.getElementById('item-form'), Joomla.getOptions('com_mails')); editor.bindListeners(); }); })(document, Joomla); })(); js/admin-email-template-edit-es5.min.js 0000644 00000003673 15172670477 0013734 0 ustar 00 (function(){"use strict";/** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */(function(a,i){var c=function(){function r(s,t){this.form=s,this.inputSubject=this.form.querySelector("#jform_subject"),this.inputBody=this.form.querySelector("#jform_body"),this.inputHtmlBody=this.form.querySelector("#jform_htmlbody"),this.templateData=t&&t.templateData?t.templateData:{},this.form.EmailTemplateEdit=this}var d=r.prototype;return d.setBodyValue=function(t){i.editors.instances[this.inputBody.id]?i.editors.instances[this.inputBody.id].setValue(t):this.inputBody.value=t},d.setHtmlBodyValue=function(t){i.editors.instances[this.inputHtmlBody.id]?i.editors.instances[this.inputHtmlBody.id].setValue(t):this.inputHtmlBody.value=t},d.insertTag=function(t,l){if(!t)return!1;var e;switch(l){case"body":e=this.inputBody;break;case"htmlbody":e=this.inputHtmlBody;break;default:return!1}return i.editors.instances[e.id]?i.editors.instances[e.id].replaceSelection(t):e.value+=" "+t,!0},d.bindListeners=function(){var t=this;a.querySelector("#btnResetSubject").addEventListener("click",function(n){n.preventDefault(),t.inputSubject.value=t.templateData.subject?t.templateData.subject:""});var l=a.querySelector("#btnResetBody");l&&l.addEventListener("click",function(n){n.preventDefault(),t.setBodyValue(t.templateData.body?t.templateData.body:"")});var e=a.querySelector("#btnResetHtmlBody");e&&e.addEventListener("click",function(n){n.preventDefault(),t.setHtmlBodyValue(t.templateData.htmlbody?t.templateData.htmlbody:"")}),this.form.querySelectorAll(".edit-action-add-tag").forEach(function(n){n.addEventListener("click",function(o){o.preventDefault();var u=o.target;t.insertTag(u.dataset.tag,u.dataset.target)})})},r}();a.addEventListener("DOMContentLoaded",function(){var r=new c(a.getElementById("item-form"),i.getOptions("com_mails"));r.bindListeners()})})(document,Joomla)})(); js/admin-email-template-edit-es5.min.js.gz 0000644 00000001405 15172670477 0014342 0 ustar 00 � �U]o�6}ϯ`X� S�i�Vk��$F�!m���K14yc3�I���g��%ˑ�x�P�E����#���)4�1^�*��B���#���:�� ag��z��5�*��k_�D�3r� �,�8>9Y�V�������(k���_�-8Ғ��E.��;�xG^��!'�\^�M�_O��������N����3�5.L7>,��5�ƕ^W�[PX��[a} ������:�{��^��8�z=���I�\�~7²Lr�K��F8�L���z���.����6-�M�LA����u y ��#ZDh�}���{U��F�6�CbQ:��Pa�ߓ���1��|� }�Mր�T�����'����+�3.B��r�C�Y^�v����e���<����V2m�wŐz> ��M�n U�m��YYw�6�k|�/�U�Ɉ �� �ml%C�yA }����{f��4��c�x�i�`��n�g���(R��8��bTY���lw��e�Tu�Re<Á���@l];y<<�tÛ���~���s;ٟ��{ '���ؘR���[�s���@|�h���=�p������6{w,�R�c�s�S�T�B�1�k��F���e��x�QV -QF@�r���R)ߤ_6�����W�μ��R��!i�>VD1)�SKpx��Ќ��q��̤�U��"��/���s���a�+� bګ*�������m*_�� js/admin-email-template-edit.min.js.gz 0000644 00000001321 15172670477 0013645 0 ustar 00 � �UQo�0~߯���y�7�¶j ������p�b_V���9i�ڮ0��$w��Ͼ�����"���Y0�19yv��9���#�� �[�!f��)A^�'���?�Nŵ����a��5 \B9}����� -y_ �Q�|����w��X�r������@�/�"����,��VV�Hl���*�>0��ql���,0kލ�TxY �Aaq�?+�K�Д�G�)�-�8���y=�g����R�k,�*�Xڻ��$m��DY����/��y������~\�ڴz� ����!�� mЇ�4�t �e�����D�VoR��D�ێ��� r���-�#d\��娝sŶ��*��$�ǩA5f��JF����X���y��=�%T�{��p%+���ټ}!�i��ꛌ0�RA;Qƻ$Z�O���q�����|h�>7��"�\��!��� �Bj=��]����fP� &R��U��պ�^i��Xc�G�獱 ��5��qg���/�褳���Q�o9��p�N����\���n���S-�l�u��ZF�Iۓ�0�I��P�(O�Tc�r�(A��^��ؤPh�2� �ŨtBK�P�ew����3���=�x{����4�X�38�ˤ,���hv�5�^NyS�b�tFF�/���3R�ŊYR{����Bٛ����߹!��( js/admin-email-template-edit.js 0000644 00000005750 15172670477 0012456 0 ustar 00 /** * @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ ((document, Joomla) => { class EmailTemplateEdit { constructor(form, options) { // Set elements this.form = form; this.inputSubject = this.form.querySelector('#jform_subject'); this.inputBody = this.form.querySelector('#jform_body'); this.inputHtmlBody = this.form.querySelector('#jform_htmlbody'); // Set options this.templateData = options && options.templateData ? options.templateData : {}; // Add back reference this.form.EmailTemplateEdit = this; } setBodyValue(value) { if (Joomla.editors.instances[this.inputBody.id]) { Joomla.editors.instances[this.inputBody.id].setValue(value); } else { this.inputBody.value = value; } } setHtmlBodyValue(value) { if (Joomla.editors.instances[this.inputHtmlBody.id]) { Joomla.editors.instances[this.inputHtmlBody.id].setValue(value); } else { this.inputHtmlBody.value = value; } } insertTag(tag, targetField) { if (!tag) return false; let input; switch (targetField) { case 'body': input = this.inputBody; break; case 'htmlbody': input = this.inputHtmlBody; break; default: return false; } if (Joomla.editors.instances[input.id]) { Joomla.editors.instances[input.id].replaceSelection(tag); } else { input.value += ` ${tag}`; } return true; } bindListeners() { document.querySelector('#btnResetSubject').addEventListener('click', event => { event.preventDefault(); this.inputSubject.value = this.templateData.subject ? this.templateData.subject : ''; }); const btnResetBody = document.querySelector('#btnResetBody'); if (btnResetBody) { btnResetBody.addEventListener('click', event => { event.preventDefault(); this.setBodyValue(this.templateData.body ? this.templateData.body : ''); }); } const btnResetHtmlBody = document.querySelector('#btnResetHtmlBody'); if (btnResetHtmlBody) { btnResetHtmlBody.addEventListener('click', event => { event.preventDefault(); this.setHtmlBodyValue(this.templateData.htmlbody ? this.templateData.htmlbody : ''); }); } // Buttons for inserting a tag this.form.querySelectorAll('.edit-action-add-tag').forEach(button => { button.addEventListener('click', event => { event.preventDefault(); const el = event.target; this.insertTag(el.dataset.tag, el.dataset.target); }); }); } } document.addEventListener('DOMContentLoaded', () => { const editor = new EmailTemplateEdit(document.getElementById('item-form'), Joomla.getOptions('com_mails')); editor.bindListeners(); }); })(document, Joomla); joomla.asset.json 0000644 00000001606 15172670477 0010061 0 ustar 00 { "$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json", "name": "com_mails", "version": "4.0.0", "description": "Joomla CMS", "license": "GPL-2.0-or-later", "assets": [ { "name": "com_mails.admin-email-template-edit.es5", "type": "script", "uri": "com_mails/admin-email-template-edit-es5.min.js", "dependencies": [ "core" ], "attributes": { "nomodule": true, "defer": true }, "version": "a50cea78ce39839d422349a90737b316905bddde" }, { "name": "com_mails.admin-email-template-edit", "type": "script", "uri": "com_mails/admin-email-template-edit.min.js", "dependencies": [ "com_mails.admin-email-template-edit.es5" ], "attributes": { "type": "module" }, "version": "824fb7d7c2442843631e6e06215df336c779fb1b" } ] }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Generation time: 0 |
proxy
|
phpinfo
|
Settings