From 91cda7a7e281dd738cc61228193e946c25c872f2 Mon Sep 17 00:00:00 2001 From: huangjx Date: Thu, 28 Oct 2021 16:18:28 +0800 Subject: [PATCH] fixed the issue of failling to submit form when hitting the enter key --- img/trash.svg:Zone.Identifier | 4 --- lib/Controller/SearchController.php | 1 + src/components/mainForm.vue | 55 ++++++++++++++++++++++------- 3 files changed, 44 insertions(+), 16 deletions(-) delete mode 100644 img/trash.svg:Zone.Identifier diff --git a/img/trash.svg:Zone.Identifier b/img/trash.svg:Zone.Identifier deleted file mode 100644 index 91c1684..0000000 --- a/img/trash.svg:Zone.Identifier +++ /dev/null @@ -1,4 +0,0 @@ -[ZoneTransfer] -ZoneId=3 -ReferrerUrl=https://icons.getbootstrap.com/icons/trash/ -HostUrl=https://icons.getbootstrap.com/assets/icons/trash.svg diff --git a/lib/Controller/SearchController.php b/lib/Controller/SearchController.php index c97de94..0306550 100644 --- a/lib/Controller/SearchController.php +++ b/lib/Controller/SearchController.php @@ -5,6 +5,7 @@ use OCA\NCDownloader\Search\torrentSearch; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\JSONResponse; use OCP\IRequest; +use OCA\NCDownloader\Tools\Helper; class SearchController extends Controller { diff --git a/src/components/mainForm.vue b/src/components/mainForm.vue index 0d04b36..0dd8249 100644 --- a/src/components/mainForm.vue +++ b/src/components/mainForm.vue @@ -1,15 +1,24 @@