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

View File

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