mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: topic thumbnail removal error
Relaxed DOM selector to accommodate changed tpl
This commit is contained in:
@@ -93,8 +93,8 @@ define('topicThumbs', [
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const id = ev.target.closest('.media[data-id]').getAttribute('data-id');
|
const id = ev.target.closest('[data-id]').getAttribute('data-id');
|
||||||
const path = ev.target.closest('.media[data-path]').getAttribute('data-path');
|
const path = ev.target.closest('[data-path]').getAttribute('data-path');
|
||||||
api.del(`/topics/${id}/thumbs`, {
|
api.del(`/topics/${id}/thumbs`, {
|
||||||
path: path,
|
path: path,
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user