Merge branch 'develop' into release-candidate

This commit is contained in:
grandeljay 2022-04-07 20:10:43 +02:00
commit 23592e9fbb
3 changed files with 6 additions and 6 deletions

View file

@ -40,8 +40,8 @@ $(function() {
placeholder: text.wishlist_no_selection placeholder: text.wishlist_no_selection
}) })
if ($_GET.wishlist) { if ($_GET.id) {
element.dropdown('set selected', $_GET.wishlist); element.dropdown('set selected', $_GET.id);
} else { } else {
if (response.results[0]) { if (response.results[0]) {
element.dropdown('set selected', response.results[0].value); element.dropdown('set selected', response.results[0].value);

View file

@ -31,7 +31,7 @@ $(function() {
}); });
$('.ui.progress').progress(); $('.ui.progress').progress();
var isPWA = window.matchMedia('(display-mode: standalone)').matches; var isPWA = navigator.standalone || window.matchMedia('(display-mode: standalone)').matches;
if (isPWA) { if (isPWA) {
$('.ui.dropdown.channel').dropdown('set selected', 'stable'); $('.ui.dropdown.channel').dropdown('set selected', 'stable');

View file

@ -43,7 +43,7 @@ $(function () {
progress.addClass('indeterminate'); progress.addClass('indeterminate');
if (wishlistValue) { if (wishlistValue) {
$_GET.wishlist = wishlistValue; $_GET.id = wishlistValue;
$('.wishlist-share').attr('href', '/?wishlist=' + wishlists[wishlistIndex].hash); $('.wishlist-share').attr('href', '/?wishlist=' + wishlists[wishlistIndex].hash);
@ -274,7 +274,7 @@ $(function () {
wishlists.dropdown('clear'); wishlists.dropdown('clear');
urlParams.delete('wishlist'); urlParams.delete('id');
$('body').toast({ message:text.toast_wishlist_delete }); $('body').toast({ message:text.toast_wishlist_delete });
@ -426,7 +426,7 @@ $(function () {
.then(function(response) { .then(function(response) {
modalWishlistCreate.modal('hide'); modalWishlistCreate.modal('hide');
urlParams.set('wishlist', response.data.lastInsertId); urlParams.set('id', response.data.lastInsertId);
$('body').toast({ message: text.toast_wish_create }); $('body').toast({ message: text.toast_wish_create });