mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
minor bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
32bc16c9da
commit
34395a9145
@ -310,8 +310,7 @@ var CollectionActions = actions.Actions({
|
||||
// if a promise has not yet resolved/rejected, return it
|
||||
// and do not start a new one...
|
||||
if(running[collection]){
|
||||
return running[collection]
|
||||
}
|
||||
return running[collection] }
|
||||
|
||||
// handle collection...
|
||||
p = running[collection] = new Promise(function(resolve, reject){
|
||||
@ -330,8 +329,7 @@ var CollectionActions = actions.Actions({
|
||||
resolve(collection_data) })
|
||||
.catch(function(err){
|
||||
delete running[collection]
|
||||
reject(err) })
|
||||
})
|
||||
reject(err) }) })
|
||||
|
||||
return p }],
|
||||
|
||||
@ -2756,10 +2754,11 @@ var UICollectionActions = actions.Actions({
|
||||
mode: function(){
|
||||
return this.collections_length > 0 || 'disabled' }, },
|
||||
mixedModeCollectionAction(function(title){
|
||||
var that = this
|
||||
this.ensureCollection(title)
|
||||
.then(function(collection){
|
||||
this.data.order.inplaceSortAs(collection.data.order)
|
||||
this.sortImages('update') }) })],
|
||||
that.data.order.inplaceSortAs(collection.data.order)
|
||||
that.sortImages('update') }) })],
|
||||
})
|
||||
|
||||
var UICollection =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user