mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 05:47:03 +03:00
fix
This commit is contained in:
parent
1b57db3fb1
commit
fd5929f735
@ -108,7 +108,7 @@ function deleteLink(linkId) {
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
linksData = linksData.filter(link => link.id !== linkId);
|
linksData = linksData.filter(link => link.id !== linkId);
|
||||||
currentPage = 1;
|
currentPage = 1;
|
||||||
renderPaginatedList();
|
loadLinks();
|
||||||
reinitializeInstagramEmbeds();
|
reinitializeInstagramEmbeds();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -134,7 +134,7 @@ function markLinkWatched(linkId) {
|
|||||||
if (idx !== -1) {
|
if (idx !== -1) {
|
||||||
linksData[idx] = updatedLink;
|
linksData[idx] = updatedLink;
|
||||||
}
|
}
|
||||||
renderPaginatedList();
|
loadLinks();
|
||||||
reinitializeInstagramEmbeds();
|
reinitializeInstagramEmbeds();
|
||||||
})
|
})
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
@ -156,7 +156,7 @@ addLinkBtn.addEventListener('click', () => {
|
|||||||
linksData.push(addedLink);
|
linksData.push(addedLink);
|
||||||
newLinkInput.value = '';
|
newLinkInput.value = '';
|
||||||
currentPage = 1;
|
currentPage = 1;
|
||||||
renderPaginatedList();
|
loadLinks();
|
||||||
reinitializeInstagramEmbeds();
|
reinitializeInstagramEmbeds();
|
||||||
})
|
})
|
||||||
.catch(err => console.error(err));
|
.catch(err => console.error(err));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user