mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
started reworking feature sort algorithm...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b22a1f1ae1
commit
1bb316da4f
@ -577,13 +577,13 @@ actions.Actions({
|
|||||||
// shorthands...
|
// shorthands...
|
||||||
// NOTE: these are here mostly for the menus...
|
// NOTE: these are here mostly for the menus...
|
||||||
rotateCW: ['Image|Edit/Rotate image clockwise',
|
rotateCW: ['Image|Edit/Rotate image clockwise',
|
||||||
function(target){ this.rotate(traget, 'cw') }],
|
function(target){ this.rotate(target, 'cw') }],
|
||||||
rotateCCW: ['Image|Edit/Rotate image counterclockwise',
|
rotateCCW: ['Image|Edit/Rotate image counterclockwise',
|
||||||
function(target){ this.rotate(traget, 'ccw') }],
|
function(target){ this.rotate(target, 'ccw') }],
|
||||||
flipVertical: ['Image|Edit/Flip image vertically',
|
flipVertical: ['Image|Edit/Flip image vertically',
|
||||||
function(target){ this.flip(traget, 'vertical') }],
|
function(target){ this.flip(target, 'vertical') }],
|
||||||
flipHorizontal: ['Image|Edit/Flip image horizontally',
|
flipHorizontal: ['Image|Edit/Flip image horizontally',
|
||||||
function(target){ this.flip(traget, 'horizontal') }],
|
function(target){ this.flip(target, 'horizontal') }],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -901,6 +901,10 @@ var FileSystemCommentsActions = actions.Actions({
|
|||||||
|
|
||||||
return file.loadIndex(path, that.config['index-dir'] +'/comments', date, logger)
|
return file.loadIndex(path, that.config['index-dir'] +'/comments', date, logger)
|
||||||
.then(function(res){
|
.then(function(res){
|
||||||
|
// no comments present...
|
||||||
|
if(res[path] == null){
|
||||||
|
return res
|
||||||
|
}
|
||||||
|
|
||||||
// if we have no sub-indexes just load the
|
// if we have no sub-indexes just load the
|
||||||
// comments as-is...
|
// comments as-is...
|
||||||
|
|||||||
@ -569,6 +569,18 @@ var FeatureSetProto = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
buildFeatureList2: function(obj, lst){
|
||||||
|
var that = this
|
||||||
|
obj = obj || {}
|
||||||
|
|
||||||
|
lst = lst == null ? this.features : lst
|
||||||
|
lst = lst.constructor !== Array ? [lst] : lst
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// .setup(<actions>, [<feature>, ...])
|
// .setup(<actions>, [<feature>, ...])
|
||||||
// -> <actions>
|
// -> <actions>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user