Add {next,previous}Photo to search results.

This allows to delete and move photos in the search view as well.
This commit is contained in:
Nils Asmussen 2016-08-21 15:43:37 +02:00
parent 641680544e
commit c0372654c3

View File

@ -29,6 +29,11 @@ function search($term) {
while($photo = $result->fetch_assoc()) { while($photo = $result->fetch_assoc()) {
$photo = Photo::prepareData($photo); $photo = Photo::prepareData($photo);
// for operations in the search view
$photo['nextPhoto'] = '';
$photo['previousPhoto'] = '';
$return['photos'][$photo['id']] = $photo; $return['photos'][$photo['id']] = $photo;
} }