mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
Stop propagation on WI entry delete
This commit is contained in:
parent
c9acea8522
commit
664447d585
@ -3009,7 +3009,8 @@ function getWorldEntry(name, data, entry) {
|
|||||||
// delete button
|
// delete button
|
||||||
const deleteButton = template.find('.delete_entry_button');
|
const deleteButton = template.find('.delete_entry_button');
|
||||||
deleteButton.data('uid', entry.uid);
|
deleteButton.data('uid', entry.uid);
|
||||||
deleteButton.on('click', async function () {
|
deleteButton.on('click', async function (e) {
|
||||||
|
e.stopPropagation();
|
||||||
const uid = $(this).data('uid');
|
const uid = $(this).data('uid');
|
||||||
const deleted = await deleteWorldInfoEntry(data, uid);
|
const deleted = await deleteWorldInfoEntry(data, uid);
|
||||||
if (!deleted) return;
|
if (!deleted) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user