mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -04:00
Fix the problem that all chapters (regardless of selections) will be
posted to the API
This commit is contained in:
parent
319967438b
commit
7de01991a0
@ -29,7 +29,7 @@ const download = () => {
|
|||||||
const ids = selected.map((i, e) => {
|
const ids = selected.map((i, e) => {
|
||||||
return $(e).find('td').first().text();
|
return $(e).find('td').first().text();
|
||||||
}).get();
|
}).get();
|
||||||
const chapters = globalChapters.filter(c => ids.indexOf(c.id));
|
const chapters = globalChapters.filter(c => ids.indexOf(c.id) >= 0);
|
||||||
console.log(ids);
|
console.log(ids);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user