mirror of https://github.com/xwiki-labs/cryptpad
Fix share dialog pre-selecting the edit link in a read-only pad #365
This commit is contained in:
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…
Reference in New Issue