CoreFiles by mySites.guru
button-image.min.js4 lines, 856 bytes, from Joomla_6.0.2-Stable-Full_Package.zip
Raw History Compare with 6.0.1
md5
6588f47174f3c33c7c4ee8511f240ae7
sha1
ec7c74575eb9fad62060ee86ef2879136e3140fb
sha256
69926d6dd23670f2fd93bc25f190f177a453459dfb4bbbcbcacd758e306f4816
import{JoomlaEditorButton as a}from"editor-api";import t from"joomla.dialog";/**
 * @copyright  (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */a.registerAction("modal-media",(l,o)=>{let e;o.popupButtons=[{label:Joomla.Text._("PLG_IMAGE_BUTTON_INSERT"),className:"button button-success btn btn-success",location:"header",onClick:()=>{Joomla.selectedMediaFile&&Joomla.selectedMediaFile.path&&Joomla.getMedia(Joomla.selectedMediaFile,l).then(()=>{e.close(),Joomla.selectedMediaFile={}})}},{label:"",ariaLabel:Joomla.Text._("JCLOSE"),className:"button-close btn-close",data:{buttonClose:"",dialogClose:""},location:"header"}],e=new t(o),e.addEventListener("joomla-dialog:close",()=>{Joomla.Modal.setCurrent(null),e.destroy()}),Joomla.Modal.setCurrent(e),e.show()});

The same content is in 139 releases, Joomla 5.1.0-alpha2 to 6.3.0-alpha1. See them all, or every version of this file.