mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6f388e30df
commit
8f17dff5c7
@ -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')
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user