- md5
- 3f18c210827ce216b62694e577e43d85
- sha1
- 3508eb3ec9cd42c1e2e5b99391331d49a054d89c
- sha256
- 92bb3e92eca18d67637c47999b0a7ac481025cab227ab34bb2f80cef75bfc277
/**
* @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(r,e){"use strict";r.popupWindow=function(o,n,s,i,a){const t=(screen.width-s)/2,l=(screen.height-i)/2,d=`height=${i},width=${s},top=${l},left=${t},scrollbars=${a},resizable`;window.open(o,n,d).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.currentTarget,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 70 releases, Joomla 5.4.0-rc1 to 6.3.0-alpha1. See them all, or every version of this file.