From 339030a84ebbe28b85fe56c9c439f22e8d68237c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Benqu=C3=A9?= Date: Wed, 20 Nov 2019 17:03:16 +0000 Subject: [PATCH] bug fixes --- www/common/common-ui-elements.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 9c96d84e9..3c2fa3785 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1123,10 +1123,14 @@ define([ // update values for link preview when radio btns change $(link).find('#cp-share-link-preview').val(getLinkValue()); $(rights).find('input[type="radio"]').on('change', function () { - $(link).find('#cp-share-link-preview').val(getLinkValue()); + $(link).find('#cp-share-link-preview').val(getLinkValue({ + embed: Util.isChecked($(link).find('#cp-share-embed')) + })); }); $(link).find('input[type="checkbox"]').on('change', function () { - $(link).find('#cp-share-link-preview').val(getLinkValue()); + $(link).find('#cp-share-link-preview').val(getLinkValue({ + embed: Util.isChecked($(link).find('#cp-share-embed')) + })); }); var frameLink = UI.dialog.customModal(link, { @@ -1292,7 +1296,6 @@ define([ className: 'primary', name: Messages.share_linkCopy, onClick: function () { - saveValue(); var v = getLinkValue(); var success = Clipboard.copy(v); if (success) { UI.log(Messages.shareSuccess); }