From 11ac3491fae7bb0d240ed9813e7de7db7bb8ce62 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Tue, 9 Aug 2022 11:02:50 +0200 Subject: [PATCH] Fix empty item in dropdown --- src/assets/js/default.js | 3 +-- src/assets/js/wishlists.js | 3 +-- src/classes/page.php | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/assets/js/default.js b/src/assets/js/default.js index 2ca8f80c..6676b407 100644 --- a/src/assets/js/default.js +++ b/src/assets/js/default.js @@ -36,8 +36,7 @@ $(function() { } $.fn.api.settings.onSuccess = function(response, element, xhr) { element.dropdown({ - values : response.results, - placeholder: text.wishlist_no_selection + values : response.results }) if ($_GET.id) { diff --git a/src/assets/js/wishlists.js b/src/assets/js/wishlists.js index 9f310174..d18f8ddd 100644 --- a/src/assets/js/wishlists.js +++ b/src/assets/js/wishlists.js @@ -23,8 +23,7 @@ $(function () { wishlists = response.results; element.dropdown({ - values : wishlists, - placeholder : text.wishlist_no_selection + values : wishlists }) if (wishlist.id) { diff --git a/src/classes/page.php b/src/classes/page.php index 97ebf26c..c785c304 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -334,8 +334,6 @@ class Page var wish_status_unavailable = ''; var wish_status_fulfilled = ''; var text = { - wishlist_no_selection : '', - modal_error_title : '', modal_failure_title : '', modal_failure_content : '',