minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-10-30 12:59:55 +03:00
parent 27aef3db40
commit 801777234f
2 changed files with 18 additions and 1 deletions

View File

@ -245,6 +245,13 @@ var ImageMarkActions = actions.Actions({
return this.data == null ?
[]
: this.data.sortViaOrder(this.data.tagQuery('marked')) },
// XXX REVISE...
set marked(gids){
gids = gids instanceof Array ?
gids
: [gids]
this.untag('marked', this.data.getImages('loaded'))
this.tag('marked', gids) },
markedInRibbon: ['- Mark|Ribbon/',
function(ribbon){
@ -522,6 +529,13 @@ var ImageBookmarkActions = actions.Actions({
return this.data == null ?
[]
: this.data.sortViaOrder(this.data.tagQuery('bookmark')) },
// XXX REVISE...
set bookmarked(gids){
gids = gids instanceof Array ?
gids
: [gids]
this.untag('bookmarked', this.data.getImages('loaded'))
this.tag('bookmarked', gids) },
prevBookmarked: ['Bookmark|Navigate/Previous bookmarked image',
{mode: function(target){

View File

@ -1130,7 +1130,10 @@ var DataPrototype = {
// normalize target and build the source list...
// 'current' ribbon...
target = target === 'current' ? this.current : target
target = (target == 'current'
|| target == 'ribbon') ?
this.current
: target
// get all gids...
if(target === 'all'){