bugfix...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-10-13 22:05:50 +03:00
parent ce3e7232fa
commit b6ea15a8ca
2 changed files with 6 additions and 6 deletions

View File

@ -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'

View File

@ -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')