Fix manga editing for sections other than 'Reading'
This commit is contained in:
parent
99f2adf491
commit
467763f8a6
@ -80,14 +80,6 @@ return [
|
|||||||
'action' => 'add',
|
'action' => 'add',
|
||||||
'verb' => 'post'
|
'verb' => 'post'
|
||||||
],
|
],
|
||||||
'manga_edit_form' => [
|
|
||||||
'path' => '/manga/edit/{id}{status}',
|
|
||||||
'action' => 'edit',
|
|
||||||
'tokens' => [
|
|
||||||
'id' => '[0-9a-z_]+',
|
|
||||||
'status' => '[a-zA-z\- ]+',
|
|
||||||
]
|
|
||||||
],
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
// Anime Collection Routes
|
// Anime Collection Routes
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
@ -162,7 +154,7 @@ return [
|
|||||||
'action' => 'edit',
|
'action' => 'edit',
|
||||||
'tokens' => [
|
'tokens' => [
|
||||||
'id' => '[0-9a-z_]+',
|
'id' => '[0-9a-z_]+',
|
||||||
'status' => '[a-zA-z\- ]+',
|
'status' => '([a-zA-Z\- ]|%20)+',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'list' => [
|
'list' => [
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
let type = this_sel.is(".plus_one_chapter") ? 'chapter' : 'volume';
|
let type = this_sel.is(".plus_one_chapter") ? 'chapter' : 'volume';
|
||||||
let completed = parseInt(parent_sel.find(`.${type}s_read`).text(), 10);
|
let completed = parseInt(parent_sel.find(`.${type}s_read`).text(), 10);
|
||||||
let total = parseInt(parent_sel.find(`.${type}_count`).text(), 10);
|
let total = parseInt(parent_sel.find(`.${type}_count`).text(), 10);
|
||||||
let manga_name = parent_sel.find('.name').html();
|
let manga_name = parent_sel.find('.name').text();
|
||||||
|
|
||||||
if (isNaN(completed)) {
|
if (isNaN(completed)) {
|
||||||
completed = 0;
|
completed = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user