remove hardcoded translations and invalid XXX notes

pull/1/head
ansuz 3 years ago
parent 01c96d668f
commit 3738ae9b99

@ -218,7 +218,7 @@
div.cp-form-section-sortable { div.cp-form-section-sortable {
min-height: 300px; min-height: 300px;
border: 2px dashed @cryptpad_text_col; // XXX border: 2px dashed @cryptpad_text_col;
padding: 20px; padding: 20px;
margin-top: 20px; margin-top: 20px;
background: @cp_app-bg; background: @cp_app-bg;

@ -1404,7 +1404,7 @@ define([
rules.forEach(function (obj) { rules.forEach(function (obj) {
getConditions($rulesC, false, rules, obj, $b); getConditions($rulesC, false, rules, obj, $b);
}); });
$addC.before($rulesC); // XXX $addC.before($rulesC);
}); });
}; };
redraw(); redraw();
@ -3112,7 +3112,6 @@ define([
window.onbeforeunload = undefined; window.onbeforeunload = undefined;
$send.removeAttr('disabled'); $send.removeAttr('disabled');
//UI.alert(Messages.form_sent); // XXX not needed anymore?
$send.text(Messages.form_update); $send.text(Messages.form_update);
APP.hasAnswered = true; APP.hasAnswered = true;
APP.answeredInForm = false; APP.answeredInForm = false;
@ -4090,7 +4089,6 @@ define([
}; };
refreshAnon(); refreshAnon();
// XXX UPDATE KEYS "form_anonyous_on", "form_anonymous_off" and "form_anonymous"
// Allow guest(anonymous) answers // Allow guest(anonymous) answers
var privacyContainer = h('div.cp-form-privacy-container'); var privacyContainer = h('div.cp-form-privacy-container');
var $privacy = $(privacyContainer); var $privacy = $(privacyContainer);

@ -1,7 +1,6 @@
define([ define([
'/customize/messages.js' '/customize/messages.js'
], function (Messages) { ], function (Messages) {
Messages.form_template_poll = "Quick poll"; // XXX update key
var pollValues = []; var pollValues = [];
var d8 = new Date(); var d8 = new Date();
d8.setDate(d8.getDate() - d8.getDay() + 7); // set sunday d8.setDate(d8.getDate() - d8.getDay() + 7); // set sunday

Loading…
Cancel
Save