From b6ea15a8ca6ca099ab58a5e262387db9a1f2e9b6 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 13 Oct 2019 22:05:50 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/metadata.js | 4 ++-- ui (gen4)/features/virtual-blocks.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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')