minor tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-08-28 01:14:11 +03:00
parent 6f388e30df
commit 8f17dff5c7
2 changed files with 8 additions and 2 deletions

View File

@ -923,8 +923,11 @@ module.UICollection = core.ImageGridFeatures.Feature({
}],
// maintain crop viewer state when loading/unloading collections...
['collectionLoaded collectionUnloaded',
['load clear reload collectionLoaded collectionUnloaded',
function(){
if(!this.dom){
return
}
this.dom[this.collection ?
'addClass'
: 'removeClass']('collection-mode')

View File

@ -750,8 +750,11 @@ module.Viewer = core.ImageGridFeatures.Feature({
// manage the .crop-mode css class...
// XXX this is not the right spot for this...
// ...but this is a bit too small for a stand-alone feature...
['crop uncrop',
['load reload clear crop uncrop',
function(){
if(!this.dom){
return
}
this.dom[this.cropped ?
'addClass'
: 'removeClass']('crop-mode')