From 3267268e20f09fcc6247277ec667dc5aa229ba73 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 28 May 2018 15:33:49 +0200 Subject: [PATCH] Fix share modal not using the previous values --- www/common/common-ui-elements.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 3ba800b49..18f38aae0 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -394,8 +394,11 @@ define([ val = val || {}; if (val.edit === false) { $(link).find('#cp-share-editable-false').prop('checked', true); + $(link).find('#cp-share-editable-true').prop('checked', false); + } else { + $(link).find('#cp-share-editable-true').prop('checked', true); + $(link).find('#cp-share-editable-false').prop('checked', false); } - else { $(link).find('#cp-share-editable-true').prop('checked', true); } if (val.embed) { $(link).find('#cp-share-embed').prop('checked', true); } if (val.present) { $(link).find('#cp-share-present').prop('checked', true); } $(link).find('#cp-share-link-preview').val(getLinkValue(val));