29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-25 06:42:53 +00:00

[4.4] Fix help icon not opening help screen (#42820)

* Fix help icon not opening help screen

* Revert "Fix help icon not opening help screen"

This reverts commit 7a13d6607f.

* Proper JS fix

---------

Co-authored-by: Quy <quy@fluxbb.org>
This commit is contained in:
Quy 2024-02-22 04:37:00 -08:00 committed by GitHub
parent ce13d13ec6
commit 6ab1334364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,7 +43,7 @@ Joomla = window.Joomla || {};
// Handle Help buttons
document.querySelectorAll('.js-toolbar-help-btn').forEach((button) => {
button.addEventListener('click', (event) => {
const btn = event.target;
const btn = event.currentTarget;
const winprops = `height=${parseInt(btn.dataset.height, 10)},width=${parseInt(btn.dataset.width, 10)},top=${(window.innerHeight - parseInt(btn.dataset.height, 10)) / 2},`
+ `left=${(window.innerWidth - parseInt(btn.dataset.width, 10)) / 2},scrollbars=${btn.dataset.width === 'true'},resizable`;