- md5
- 3e923260691313d41b3bd66e16766d61
- sha1
- 0bfd19cbe7ce58733b535e47f09e692e62bb466c
- sha256
- eb2141732cbbcb5833810ec4434146d3c076fe0f3bbd565aa8394ae1bc61a07e
/**
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/Joomla=window.Joomla||{},function(d,e){"use strict";d.popupWindow=function(o,n,s,i,a){const t=(screen.width-s)/2,l=(screen.height-i)/2,r=`height=${i},width=${s},top=${l},left=${t},scrollbars=${a},resizable`;window.open(o,n,r).window.focus()},e.addEventListener("DOMContentLoaded",()=>{const o=e.getElementById("toolbar-options"),n=e.getElementById("toolbar-help"),s=e.getElementById("toolbar-inlinehelp");if(e.querySelectorAll(".js-toolbar-help-btn").forEach(i=>{i.addEventListener("click",a=>{const t=a.target,l=`height=${parseInt(t.dataset.height,10)},width=${parseInt(t.dataset.width,10)},top=${(window.innerHeight-parseInt(t.dataset.height,10))/2},left=${(window.innerWidth-parseInt(t.dataset.width,10))/2},scrollbars=${t.dataset.width==="true"},resizable`;window.open(t.dataset.url,t.dataset.tile,l).window.focus()})}),s){s.classList.add("ms-auto");return}n&&!o&&n.classList.add("ms-auto"),o&&!n&&o.classList.add("ms-auto")})}(Joomla,document);
The same content is in 19 releases, Joomla 4.4.1-rc1 to 5.1.0-alpha4. See them all, or every version of this file.