From ec78b20e13b22785a5e5492584a4492ff1e77b0f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 4 Feb 2016 05:08:05 +0300 Subject: [PATCH] minor tweaking... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/ui.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index 34934f75..c38c7178 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -2638,6 +2638,9 @@ module.ImageStateIndicator = core.ImageGridFeatures.Feature({ return } + + // populate the info... + var img = this.images && gid in this.images && this.images[gid] // gid.. @@ -2663,19 +2666,22 @@ module.ImageStateIndicator = core.ImageGridFeatures.Feature({ var tags = this.data.getTags(gid) // marks... - // XXX change class... global.find('.marked') + [tags.indexOf('selected') < 0 ? 'removeClass' : 'addClass']('on') + // XXX STUB: add a css rule for visualising the above... .css({ opacity: tags.indexOf('selected') < 0 ? '0.5' : '1', }) global.find('.bookmarked') + [tags.indexOf('bookmark') < 0 ? 'removeClass' : 'addClass']('on') + // XXX STUB: add a css rule for visualising the above... .css({ opacity: tags.indexOf('bookmark') < 0 ? '0.5' : '1', }) }], - // XXX add toggler to toggle global image indicator (status bar) modes... - // XXX + // XXX add toggler to toggle global image indicator (status bar) modes... + // XXX }), handlers: [