mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 16:21:40 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
27aef3db40
commit
801777234f
@ -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){
|
||||
|
||||
@ -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'){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user