diff --git a/ui (gen4)/features/metadata.js b/ui (gen4)/features/metadata.js index 02b03956..339134be 100755 --- a/ui (gen4)/features/metadata.js +++ b/ui (gen4)/features/metadata.js @@ -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' diff --git a/ui (gen4)/features/virtual-blocks.js b/ui (gen4)/features/virtual-blocks.js index 3997ac4c..b1a9a3f0 100644 --- a/ui (gen4)/features/virtual-blocks.js +++ b/ui (gen4)/features/virtual-blocks.js @@ -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')