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:
parent
641680544e
commit
c0372654c3
@ -29,6 +29,11 @@ function search($term) {
|
||||
while($photo = $result->fetch_assoc()) {
|
||||
|
||||
$photo = Photo::prepareData($photo);
|
||||
|
||||
// for operations in the search view
|
||||
$photo['nextPhoto'] = '';
|
||||
$photo['previousPhoto'] = '';
|
||||
|
||||
$return['photos'][$photo['id']] = $photo;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user