mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-11-01 11:50:07 +00:00
started work with real data...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
38ea605f00
commit
0a77873455
@ -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 : */
|
||||
|
||||
@ -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...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user