mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: sorted list delete button
This commit is contained in:
@@ -64,10 +64,9 @@ define('settings/sorted-list', ['benchpress', 'jqueryui'], function (benchpress)
|
|||||||
};
|
};
|
||||||
|
|
||||||
function setupRemoveButton($container, itemUUID) {
|
function setupRemoveButton($container, itemUUID) {
|
||||||
var key = $container.attr('data-sorted-list');
|
var removeBtn = $container.find('[data-sorted-list-uuid="' + itemUUID + '"] [data-type="remove"]');
|
||||||
|
|
||||||
var removeBtn = $('[data-sorted-list="' + key + '"] [data-type="remove"]');
|
|
||||||
removeBtn.on('click', function () {
|
removeBtn.on('click', function () {
|
||||||
|
console.log(itemUUID);
|
||||||
$('[data-sorted-list-uuid="' + itemUUID + '"]').remove();
|
$('[data-sorted-list-uuid="' + itemUUID + '"]').remove();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user