From a148434244606128fc208ce409d22a1537199f16 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 13 May 2019 15:26:20 +0200 Subject: [PATCH] Fix share dialog pre-selecting the edit link in a read-only pad #365 --- www/common/common-ui-elements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 79863a527..9418c2e79 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -452,7 +452,7 @@ define([ } common.getAttribute(['general', 'share'], function (err, val) { val = val || {}; - if (val.edit === false) { + if (val.edit === false || !hashes.editHash) { $(link).find('#cp-share-editable-false').prop('checked', true); $(link).find('#cp-share-editable-true').prop('checked', false); } else {