From 93b885dc0d7192a98aac908549321784b93eb2ed Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Tue, 2 Feb 2016 14:13:49 -0500 Subject: [PATCH] Fix manga editing for sections other than 'Reading' --- app/config/routes.php | 10 +--------- public/js/manga_edit.js | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/config/routes.php b/app/config/routes.php index 8108109d..5736a4eb 100644 --- a/app/config/routes.php +++ b/app/config/routes.php @@ -80,14 +80,6 @@ return [ 'action' => 'add', 'verb' => 'post' ], - 'manga_edit_form' => [ - 'path' => '/manga/edit/{id}{status}', - 'action' => 'edit', - 'tokens' => [ - 'id' => '[0-9a-z_]+', - 'status' => '[a-zA-z\- ]+', - ] - ], // --------------------------------------------------------------------- // Anime Collection Routes // --------------------------------------------------------------------- @@ -162,7 +154,7 @@ return [ 'action' => 'edit', 'tokens' => [ 'id' => '[0-9a-z_]+', - 'status' => '[a-zA-z\- ]+', + 'status' => '([a-zA-Z\- ]|%20)+', ] ], 'list' => [ diff --git a/public/js/manga_edit.js b/public/js/manga_edit.js index e943b1f9..faa3617b 100755 --- a/public/js/manga_edit.js +++ b/public/js/manga_edit.js @@ -12,7 +12,7 @@ let type = this_sel.is(".plus_one_chapter") ? 'chapter' : 'volume'; let completed = parseInt(parent_sel.find(`.${type}s_read`).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)) { completed = 0;