mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
bugfix in tags...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
92b928fbfb
commit
ef10c17fc3
18
ui/tags.js
18
ui/tags.js
@ -202,7 +202,7 @@ function updateTags(tags, gid, tagset, images){
|
|||||||
function tagSelectAND(tags, from, no_sort, tagset){
|
function tagSelectAND(tags, from, no_sort, tagset){
|
||||||
tags = typeof(tags) == typeof('str') ? [ tags ] : tags
|
tags = typeof(tags) == typeof('str') ? [ tags ] : tags
|
||||||
tagset = tagset == null ? TAGS : tagset
|
tagset = tagset == null ? TAGS : tagset
|
||||||
from = from == null ? getLoadedGIDs() : from
|
from = from == null ? getLoadedGIDs() : getLoadedGIDs(from)
|
||||||
|
|
||||||
// special case: a single tag...
|
// special case: a single tag...
|
||||||
// NOTE: this is significantly faster.
|
// NOTE: this is significantly faster.
|
||||||
@ -300,15 +300,19 @@ function tagSelectOR(tags, from, no_sort, tagset){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function tagList(list, tags){
|
function tagList(list, tags){
|
||||||
list.forEach(function(gid){
|
list = getLoadedGIDs(list)
|
||||||
addTag(tags, gid)
|
list
|
||||||
})
|
.forEach(function(gid){
|
||||||
|
addTag(tags, gid)
|
||||||
|
})
|
||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
function untagList(list, tags){
|
function untagList(list, tags){
|
||||||
list.forEach(function(gid){
|
list = getLoadedGIDs(list)
|
||||||
removeTag(tags, gid)
|
list
|
||||||
})
|
.forEach(function(gid){
|
||||||
|
removeTag(tags, gid)
|
||||||
|
})
|
||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
// same as tagList(..), but will also remove the tags form gids no in
|
// same as tagList(..), but will also remove the tags form gids no in
|
||||||
|
|||||||
2
ui/ui.js
2
ui/ui.js
@ -570,6 +570,8 @@ function progressBar(name, container, close, hide_timeout, auto_remove){
|
|||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
widget.hide()
|
widget.hide()
|
||||||
|
|
||||||
|
// XXX this is not a good way to go...
|
||||||
|
// need a clean way to reset...
|
||||||
if(auto_remove){
|
if(auto_remove){
|
||||||
widget.remove()
|
widget.remove()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user