From e979c6118a910ef82ad5f9bb3ff84aa71e313cab Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 20 Feb 2026 10:17:11 +0100 Subject: [PATCH] Fix function calls --- resources/js/alpine/components/dismissible.js | 6 ++-- .../views/admin/categories/index.blade.php | 4 +-- .../views/admin/comments/index.blade.php | 8 +++--- .../views/admin/invitations/show.blade.php | 2 +- .../promotions/show-statistics.blade.php | 2 +- .../admin/promotions/statistics.blade.php | 2 +- .../admin/release-reports/index.blade.php | 4 +-- resources/views/admin/roles/index.blade.php | 2 +- resources/views/mymovies/index.blade.php | 4 +-- resources/views/myshows/index.blade.php | 4 +-- resources/views/partials/admin-menu.blade.php | 28 +++++++++---------- resources/views/profile/edit.blade.php | 4 +-- 12 files changed, 36 insertions(+), 34 deletions(-) diff --git a/resources/js/alpine/components/dismissible.js b/resources/js/alpine/components/dismissible.js index 821acd0ae..ad6bdf887 100644 --- a/resources/js/alpine/components/dismissible.js +++ b/resources/js/alpine/components/dismissible.js @@ -86,8 +86,10 @@ Alpine.data('categoryDeleteModal', () => ({ Alpine.data('periodFilter', (initialShowCustom) => ({ showCustom: initialShowCustom || false, - onPeriodChange(e) { - if (e.target.value === 'custom') { + onPeriodChange() { + var select = this.$refs.periodForm ? this.$refs.periodForm.querySelector('select[name="period"]') : null; + if (!select) return; + if (select.value === 'custom') { this.showCustom = true; } else { this.showCustom = false; diff --git a/resources/views/admin/categories/index.blade.php b/resources/views/admin/categories/index.blade.php index 22c0b23ba..cbf2a4ac3 100644 --- a/resources/views/admin/categories/index.blade.php +++ b/resources/views/admin/categories/index.blade.php @@ -165,7 +165,7 @@

Confirm Delete

-
@@ -178,7 +178,7 @@

- diff --git a/resources/views/admin/comments/index.blade.php b/resources/views/admin/comments/index.blade.php index 8b7a37faf..9d2f1124c 100644 --- a/resources/views/admin/comments/index.blade.php +++ b/resources/views/admin/comments/index.blade.php @@ -9,7 +9,7 @@

{{ session('success') }}

- @@ -21,7 +21,7 @@

{{ session('error') }}

- @@ -160,7 +160,7 @@ Confirm Deletion - @@ -174,7 +174,7 @@
diff --git a/resources/views/admin/invitations/show.blade.php b/resources/views/admin/invitations/show.blade.php index 2d1c242d4..744c3d5da 100644 --- a/resources/views/admin/invitations/show.blade.php +++ b/resources/views/admin/invitations/show.blade.php @@ -21,7 +21,7 @@ x-data="confirmForm" data-message="Are you sure you want to cancel this invitation?"> @csrf - diff --git a/resources/views/admin/promotions/show-statistics.blade.php b/resources/views/admin/promotions/show-statistics.blade.php index 277dcb9c4..05e34e385 100644 --- a/resources/views/admin/promotions/show-statistics.blade.php +++ b/resources/views/admin/promotions/show-statistics.blade.php @@ -63,7 +63,7 @@
- diff --git a/resources/views/admin/promotions/statistics.blade.php b/resources/views/admin/promotions/statistics.blade.php index 01b461742..87f99e005 100644 --- a/resources/views/admin/promotions/statistics.blade.php +++ b/resources/views/admin/promotions/statistics.blade.php @@ -22,7 +22,7 @@
- diff --git a/resources/views/admin/release-reports/index.blade.php b/resources/views/admin/release-reports/index.blade.php index ecdf9e5a7..5f20947aa 100644 --- a/resources/views/admin/release-reports/index.blade.php +++ b/resources/views/admin/release-reports/index.blade.php @@ -9,7 +9,7 @@

{{ session('success') }}

-
@@ -21,7 +21,7 @@

{{ session('error') }}

- diff --git a/resources/views/admin/roles/index.blade.php b/resources/views/admin/roles/index.blade.php index 351c3819d..76ce04875 100644 --- a/resources/views/admin/roles/index.blade.php +++ b/resources/views/admin/roles/index.blade.php @@ -66,7 +66,7 @@ x-data="confirmLink" data-url="{{ url('admin/role-delete?id=' . $role->id) }}" data-message="Are you sure you want to delete role '{{ $role->name }}'?" - x-on:click.prevent="navigate"> + x-on:click.prevent="navigate()">
diff --git a/resources/views/mymovies/index.blade.php b/resources/views/mymovies/index.blade.php index bf1fd34cf..720f1a153 100644 --- a/resources/views/mymovies/index.blade.php +++ b/resources/views/mymovies/index.blade.php @@ -115,7 +115,7 @@ data-message="Are you sure you want to remove this movie from your watchlist?" data-confirm-text="Remove" data-type="danger" - x-on:click.prevent="navigate"> + x-on:click.prevent="navigate()"> Delete @@ -228,7 +228,7 @@ data-message="Are you sure you want to remove this movie from your watchlist?" data-confirm-text="Remove" data-type="danger" - x-on:click.prevent="navigate"> + x-on:click.prevent="navigate()"> diff --git a/resources/views/myshows/index.blade.php b/resources/views/myshows/index.blade.php index f58fff929..76fbb1731 100644 --- a/resources/views/myshows/index.blade.php +++ b/resources/views/myshows/index.blade.php @@ -150,7 +150,7 @@ data-message="Are you sure you want to remove this show from your list?" data-confirm-text="Remove" data-type="danger" - x-on:click.prevent="navigate"> + x-on:click.prevent="navigate()"> @@ -210,7 +210,7 @@ data-message="Are you sure you want to remove this show from your list?" data-confirm-text="Remove" data-type="danger" - x-on:click.prevent="navigate"> + x-on:click.prevent="navigate()"> diff --git a/resources/views/partials/admin-menu.blade.php b/resources/views/partials/admin-menu.blade.php index e798d845c..e31143fc5 100644 --- a/resources/views/partials/admin-menu.blade.php +++ b/resources/views/partials/admin-menu.blade.php @@ -9,7 +9,7 @@
- -