mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36: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) {
|
||||
var key = $container.attr('data-sorted-list');
|
||||
|
||||
var removeBtn = $('[data-sorted-list="' + key + '"] [data-type="remove"]');
|
||||
var removeBtn = $container.find('[data-sorted-list-uuid="' + itemUUID + '"] [data-type="remove"]');
|
||||
removeBtn.on('click', function () {
|
||||
console.log(itemUUID);
|
||||
$('[data-sorted-list-uuid="' + itemUUID + '"]').remove();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user