disable form response message UI until it's been reviewed more

pull/1/head
ansuz 3 years ago
parent 8a1aef9792
commit 812d5f7146

@ -2570,10 +2570,11 @@ define([
var responseMsg = h('div.cp-form-response-msg-container');
var $responseMsg = $(responseMsg);
var refreshResponse = function () {
if (true) { return; } // XXX 4.10.0
$responseMsg.empty();
Messages.form_updateMsg = "Update response message"; // XXX
Messages.form_addMsg = "Add response message"; // XXX
Messages.form_responseMsg = "Add a message that will be displayed in the response page."; // XXX
Messages.form_updateMsg = "Update response message"; // XXX 4.10.0
Messages.form_addMsg = "Add response message"; // XXX 4.10.0
Messages.form_responseMsg = "Add a message that will be displayed in the response page."; // XXX 4.10.0
var text = content.answers.msg ? Messages.form_updateMsg : Messages.form_addMsg;
var btn = h('button.btn.btn-secondary', text);
$(btn).click(function () {
@ -2602,7 +2603,7 @@ define([
name: Messages.settings_save,
onClick: function () {
var v = editor.getValue();
content.answers.msg = v.trim(0, 2000); // XXX max length?
content.answers.msg = v.trim(0, 2000); // XXX 4.10.0 max length?
framework.localChange();
framework._.cpNfInner.chainpad.onSettle(function () {
UI.log(Messages.saved);
@ -2628,9 +2629,9 @@ define([
}
UI.openCustomModal(APP.responseModal);
});
$responseMsg.append(btn);
// $responseMsg.append(btn); // XXX 4.10.0
};
refreshResponse();
//refreshResponse();
// Allow anonymous answers
var privacyContainer = h('div.cp-form-privacy-container');
@ -2727,7 +2728,7 @@ define([
evOnChange.reg(refreshPublic);
evOnChange.reg(refreshPrivacy);
evOnChange.reg(refreshEndDate);
evOnChange.reg(refreshResponse);
//evOnChange.reg(refreshResponse);
return [
endDateContainer,

Loading…
Cancel
Save