mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-30 10:50:08 +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',
|
cls: 'table-view metadata-view',
|
||||||
showDisabled: false,
|
showDisabled: false,
|
||||||
})
|
})
|
||||||
.on('attached', function(){
|
.on('attached', function(){ this.updatePreview() })
|
||||||
this.updatePreview() })
|
.on('update', function(){ this.updatePreview() })
|
||||||
// select value of current item...
|
// select value of current item...
|
||||||
.on('select', function(evt, elem){
|
.on('select', function(evt, elem){
|
||||||
that.config['metadata-auto-select-mode'] == 'on select'
|
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'
|
ref = ref || 'current'
|
||||||
offset = offset || 'after'
|
offset = offset || 'after'
|
||||||
offset = offset == 'after' ?
|
offset = offset == 'after' ?
|
||||||
@ -82,7 +82,7 @@ var VirtualBlocksActions = actions.Actions({
|
|||||||
offset
|
offset
|
||||||
: 0
|
: 0
|
||||||
// XXX revise...
|
// XXX revise...
|
||||||
data = arguments[arguments.length-1] instanceof Object ?
|
img = arguments[arguments.length-1] instanceof Object ?
|
||||||
arguments[arguments.length-1]
|
arguments[arguments.length-1]
|
||||||
: null
|
: null
|
||||||
|
|
||||||
@ -103,8 +103,8 @@ var VirtualBlocksActions = actions.Actions({
|
|||||||
data.updateImagePositions()
|
data.updateImagePositions()
|
||||||
|
|
||||||
// update data...
|
// update data...
|
||||||
data
|
img
|
||||||
&& (this.images[gid] = data)
|
&& (this.images[gid] = img)
|
||||||
this.markChanged
|
this.markChanged
|
||||||
&& this
|
&& this
|
||||||
.markChanged('data')
|
.markChanged('data')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user