芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.9/com_modules/js/admin-modules-modal-es5.min.js
!function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){var t=[].slice.call(document.querySelectorAll(".js-module-insert")),e=[].slice.call(document.querySelectorAll(".js-position-insert"));t.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault();var e=t.target.getAttribute("data-module"),o=t.target.getAttribute("data-editor");window.parent.Joomla&&window.parent.Joomla.editors&&window.parent.Joomla.editors.instances&&Object.prototype.hasOwnProperty.call(window.parent.Joomla.editors.instances,o)&&window.parent.Joomla.editors.instances[o].replaceSelection("{loadmoduleid "+e+"}"),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))})),e.forEach((function(t){t.addEventListener("click",(function(t){t.preventDefault();var e=t.target.getAttribute("data-position"),o=t.target.getAttribute("data-editor");window.Joomla&&window.Joomla.editors&&Joomla.editors.instances&&Object.prototype.hasOwnProperty.call(window.parent.Joomla.editors.instances,o)&&window.parent.Joomla.editors.instances[o].replaceSelection("{loadposition "+e+"}"),window.parent.Joomla.Modal&&window.parent.Joomla.Modal.getCurrent().close()}))}))}))}();