fix: remove ev, hooks don't pass event, closes #10611

isekai-main
Barış Soner Uşaklı 3 years ago
parent b860c2605c
commit 082a9e1d42

@ -7,7 +7,7 @@ define('admin/settings/api', ['settings', 'alerts', 'hooks'], function (settings
settings.load('core.api', $('.core-api-settings')); settings.load('core.api', $('.core-api-settings'));
$('#save').on('click', saveSettings); $('#save').on('click', saveSettings);
hooks.on('action:settings.sorted-list.itemLoaded', (ev, { element }) => { hooks.on('action:settings.sorted-list.itemLoaded', ({ element }) => {
element.addEventListener('click', (ev) => { element.addEventListener('click', (ev) => {
if (ev.target.closest('input[readonly]')) { if (ev.target.closest('input[readonly]')) {
// Select entire input text // Select entire input text

Loading…
Cancel
Save