mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
Fix broken buttons on download manager page
This commit is contained in:
@@ -43,12 +43,14 @@ const component = () => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
jobAction(action, id) {
|
||||
jobAction(action, event) {
|
||||
let url = `${base_url}api/admin/mangadex/queue/${action}`;
|
||||
if (id !== undefined)
|
||||
url += '?' + $.param({
|
||||
if (event) {
|
||||
const id = event.currentTarget.closest('tr').id.split('-')[1];
|
||||
url = `${url}?${$.param({
|
||||
id: id
|
||||
});
|
||||
})}`;
|
||||
}
|
||||
console.log(url);
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user