mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
fixed a bug with sorting...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7f71d093b7
commit
e5127b85bc
@ -160,6 +160,7 @@ function setupBookmarks(viewer){
|
||||
return viewer
|
||||
.on('sortedImages', function(){
|
||||
BOOKMARKS = fastSortGIDsByOrder(BOOKMARKS)
|
||||
bookmarksUpdated()
|
||||
})
|
||||
}
|
||||
SETUP_BINDINGS.push(setupBookmarks)
|
||||
|
||||
@ -738,6 +738,10 @@ function setupMarks(viewer){
|
||||
viewer.trigger('togglingMark', [gid, action])
|
||||
})
|
||||
})
|
||||
.on('sortedImages', function(){
|
||||
MARKED = fastSortGIDsByOrder(MARKED)
|
||||
marksUpdated()
|
||||
})
|
||||
.on('baseURLChanged', function(){
|
||||
invalidateMarksCache()
|
||||
})
|
||||
|
||||
@ -531,6 +531,12 @@ function setupUnsortedTagHandler(viewer){
|
||||
untagList(gids, UNSORTED_TAG)
|
||||
}
|
||||
})
|
||||
.on('sortedImages', function(){
|
||||
for(var tag in TAGS){
|
||||
TAGS[tag] = fastSortGIDsByOrder(TAGS[tag])
|
||||
}
|
||||
tagsUpdated()
|
||||
})
|
||||
}
|
||||
SETUP_BINDINGS.push(setupUnsortedTagHandler)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user