Fix share dialog pre-selecting the edit link in a read-only pad #365

pull/1/head
yflory 6 years ago
parent 64667d6d0d
commit a148434244

@ -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 {

Loading…
Cancel
Save