Fix empty item in dropdown
This commit is contained in:
parent
ae4d05d186
commit
11ac3491fa
3 changed files with 2 additions and 6 deletions
|
@ -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) {
|
||||
|
|
|
@ -23,8 +23,7 @@ $(function () {
|
|||
wishlists = response.results;
|
||||
|
||||
element.dropdown({
|
||||
values : wishlists,
|
||||
placeholder : text.wishlist_no_selection
|
||||
values : wishlists
|
||||
})
|
||||
|
||||
if (wishlist.id) {
|
||||
|
|
|
@ -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.') ?>',
|
||||
|
|
Loading…
Reference in a new issue