mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add new hook that fires when sorted-set list modal is shown
This commit is contained in:
@@ -44,6 +44,7 @@ define('settings/sorted-list', [
|
||||
SortedList.addItem(modal.find('form').children(), $container);
|
||||
}
|
||||
});
|
||||
hooks.fire('action:settings.sorted-list.modal', { modal });
|
||||
});
|
||||
|
||||
const call = $container.parents('form').attr('data-socket-get');
|
||||
@@ -132,6 +133,7 @@ define('settings/sorted-list', [
|
||||
parse($container, itemUUID, data, oldItem);
|
||||
}
|
||||
});
|
||||
hooks.fire('action:settings.sorted-list.modal', { modal });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user