Fix share modal not using the previous values
This commit is contained in:
@@ -394,8 +394,11 @@ define([
|
|||||||
val = val || {};
|
val = val || {};
|
||||||
if (val.edit === false) {
|
if (val.edit === false) {
|
||||||
$(link).find('#cp-share-editable-false').prop('checked', true);
|
$(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.embed) { $(link).find('#cp-share-embed').prop('checked', true); }
|
||||||
if (val.present) { $(link).find('#cp-share-present').prop('checked', true); }
|
if (val.present) { $(link).find('#cp-share-present').prop('checked', true); }
|
||||||
$(link).find('#cp-share-link-preview').val(getLinkValue(val));
|
$(link).find('#cp-share-link-preview').val(getLinkValue(val));
|
||||||
|
|||||||
Reference in New Issue
Block a user