mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: remove ev, hooks don't pass event, closes #10611
This commit is contained in:
@@ -7,7 +7,7 @@ define('admin/settings/api', ['settings', 'alerts', 'hooks'], function (settings
|
||||
settings.load('core.api', $('.core-api-settings'));
|
||||
$('#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) => {
|
||||
if (ev.target.closest('input[readonly]')) {
|
||||
// Select entire input text
|
||||
|
||||
Reference in New Issue
Block a user