Show albums above photos in search #434
This commit is contained in:
parent
8c050698dd
commit
d9bd59eba5
@ -47,7 +47,7 @@ search.find = function(term) {
|
||||
if (albumsData==='' && photosData==='') html = 'error'
|
||||
else if (albumsData==='') html = build.divider('Photos') + photosData
|
||||
else if (photosData==='') html = build.divider('Albums') + albumsData
|
||||
else html = build.divider('Photos') + photosData + build.divider('Albums') + albumsData
|
||||
else html = build.divider('Albums') + albumsData + build.divider('Photos') + photosData
|
||||
|
||||
// Only refresh view when search results are different
|
||||
if (search.hash!==data.hash) {
|
||||
|
Loading…
Reference in New Issue
Block a user