Fix empty item in dropdown

This commit is contained in:
grandeljay 2022-08-09 11:02:50 +02:00
parent ae4d05d186
commit 11ac3491fa
3 changed files with 2 additions and 6 deletions

View file

@ -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) {

View file

@ -23,8 +23,7 @@ $(function () {
wishlists = response.results;
element.dropdown({
values : wishlists,
placeholder : text.wishlist_no_selection
values : wishlists
})
if (wishlist.id) {

View file

@ -334,8 +334,6 @@ class Page
var wish_status_unavailable = '<?= Wish::STATUS_UNAVAILABLE ?>';
var wish_status_fulfilled = '<?= Wish::STATUS_FULFILLED ?>';
var text = {
wishlist_no_selection : '<?= __('No wishlist selected.') ?>',
modal_error_title : '<?= __('Error') ?>',
modal_failure_title : '<?= __('Failure') ?>',
modal_failure_content : '<?= __('The server did not confirm that the action was successful.') ?>',