Hide 'required' radio in preview mode

pull/1/head
yflory 3 years ago
parent ccc5e92659
commit fe9d17cd17

@ -2777,6 +2777,7 @@ define([
var $oldTag = $(data.tag);
$(edit).show();
$(previewDiv).show();
$(requiredDiv).hide();
$(editButtons).find('.cp-form-preview-button').remove();
@ -2795,6 +2796,7 @@ define([
};
var onEdit = function (tmp) {
data.editing = true;
$(requiredDiv).show();
$(previewDiv).hide();
$(data.tag).hide();
$(editContainer).append(data.edit(onSave, tmp, framework));
@ -2806,6 +2808,7 @@ define([
$(edit).click(function () {
onEdit();
});
$(requiredDiv).hide();
// If we were editing this field, recover our unsaved changes
if (temp && temp[uid]) {

Loading…
Cancel
Save