mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fix: multiple sorted-lists do not save to the correct set
This commit is contained in:
@@ -531,7 +531,9 @@ define('settings', function () {
|
||||
helper.whenReady(function () {
|
||||
var list = formEl.find('[data-sorted-list]');
|
||||
if (list.length) {
|
||||
getHook(list, 'set').call(Settings, list, values);
|
||||
list.each((idx, item) => {
|
||||
getHook(item, 'set').call(Settings, $(item), values);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -70,7 +70,6 @@ define('settings/sorted-list', [
|
||||
function setupRemoveButton($container, itemUUID) {
|
||||
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