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:
parent
ce13d13ec6
commit
6ab1334364
|
@ -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`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user