fix(picker): albums select

This commit is contained in:
mrilyew 2025-05-27 13:44:20 +03:00 committed by Alexander Minkin
parent a906e27f19
commit aedbfe364e

View file

@ -1366,7 +1366,7 @@ u(document).on("click", "#__photoAttachment", async (e) => {
if(album == 0) { if(album == 0) {
photos = await window.OVKAPI.call('photos.getAll', {'owner_id': window.openvk.current_id, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page}) photos = await window.OVKAPI.call('photos.getAll', {'owner_id': window.openvk.current_id, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page})
} else { } else {
photos = await window.OVKAPI.call('photos.get', {'owner_id': window.openvk.current_id, 'album_id': album, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page}) photos = await window.OVKAPI.call('photos.get', {'owner_id': club != 0 ? Math.abs(club) * -1 : window.openvk.current_id, 'album_id': album, 'photo_sizes': 1, 'count': photos_per_page, 'offset': page * photos_per_page})
} }
} catch(e) { } catch(e) {
u("#attachment_insert_count h4").html(tr("is_x_photos", -1)) u("#attachment_insert_count h4").html(tr("is_x_photos", -1))