mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ce3e7232fa
commit
b6ea15a8ca
@ -484,8 +484,8 @@ var MetadataUIActions = actions.Actions({
|
||||
cls: 'table-view metadata-view',
|
||||
showDisabled: false,
|
||||
})
|
||||
.on('attached', function(){
|
||||
this.updatePreview() })
|
||||
.on('attached', function(){ this.updatePreview() })
|
||||
.on('update', function(){ this.updatePreview() })
|
||||
// select value of current item...
|
||||
.on('select', function(evt, elem){
|
||||
that.config['metadata-auto-select-mode'] == 'on select'
|
||||
|
||||
@ -71,7 +71,7 @@ var VirtualBlocksActions = actions.Actions({
|
||||
...
|
||||
}
|
||||
`,
|
||||
function(ref, offset, data){
|
||||
function(ref, offset, img){
|
||||
ref = ref || 'current'
|
||||
offset = offset || 'after'
|
||||
offset = offset == 'after' ?
|
||||
@ -82,7 +82,7 @@ var VirtualBlocksActions = actions.Actions({
|
||||
offset
|
||||
: 0
|
||||
// XXX revise...
|
||||
data = arguments[arguments.length-1] instanceof Object ?
|
||||
img = arguments[arguments.length-1] instanceof Object ?
|
||||
arguments[arguments.length-1]
|
||||
: null
|
||||
|
||||
@ -103,8 +103,8 @@ var VirtualBlocksActions = actions.Actions({
|
||||
data.updateImagePositions()
|
||||
|
||||
// update data...
|
||||
data
|
||||
&& (this.images[gid] = data)
|
||||
img
|
||||
&& (this.images[gid] = img)
|
||||
this.markChanged
|
||||
&& this
|
||||
.markChanged('data')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user