started work with real data...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-14 22:17:17 +03:00
parent 38ea605f00
commit 0a77873455
2 changed files with 59 additions and 40 deletions

View File

@ -4,6 +4,11 @@
*
**********************************************************************/
if(typeof(process) != 'undefined'){
var glob = require('glob')
}
//var DEBUG = DEBUG != null ? DEBUG : true
//
define(function(require){ var module = {}
@ -89,6 +94,12 @@ module.setupActions = function(viewer){
}
window.load2014 = function(){
return glob('l:/media/img/my/2014/*jpg')
.on('end', function(l){ window.a.loadURLs(l) })
}
/**********************************************************************
* vim:set ts=4 sw=4 : */

View File

@ -584,6 +584,8 @@ actions.Actions(Client, {
} else {
this.ribbons.clear()
// XXX
this.ribbons.images = this.images
}
this.reload()
@ -639,6 +641,8 @@ actions.Actions(Client, {
.centerImage(gid)
.centerRibbon(gid)
var that = this
//setTimeout(function(){
// align other ribbons...
var ribbon = data.getRibbon(gid)
for(var r in data.ribbons){
@ -658,11 +662,12 @@ actions.Actions(Client, {
if(f == null){
continue
}
this.centerImage(f, 'before')
that.centerImage(f, 'before')
} else {
this.centerImage(t, 'after')
that.centerImage(t, 'after')
}
}
//}, 0)
}],
// XXX these should also affect up/down navigation...
// ...navigate by proximity (closest to center) rather than by
@ -682,6 +687,8 @@ actions.Actions(Client, {
.centerRibbon(gid)
.centerImage(gid)
var that = this
//setTimeout(function(){
// align other ribbons...
var ribbon = data.getRibbon(gid)
for(var r in data.ribbons){
@ -700,8 +707,9 @@ actions.Actions(Client, {
if(f == null){
continue
}
this.centerImage(f, 'before')
that.centerImage(f, 'before')
}
//}, 0)
}],
// NOTE: this will align only a single image...