From 3738ae9b99d1bf596fef751c25e99e353b030f9d Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Sep 2021 15:48:51 +0530 Subject: [PATCH] remove hardcoded translations and invalid XXX notes --- www/form/app-form.less | 2 +- www/form/inner.js | 4 +--- www/form/templates.js | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/www/form/app-form.less b/www/form/app-form.less index d57ee1a22..24253b93b 100644 --- a/www/form/app-form.less +++ b/www/form/app-form.less @@ -218,7 +218,7 @@ div.cp-form-section-sortable { min-height: 300px; - border: 2px dashed @cryptpad_text_col; // XXX + border: 2px dashed @cryptpad_text_col; padding: 20px; margin-top: 20px; background: @cp_app-bg; diff --git a/www/form/inner.js b/www/form/inner.js index cf7d4e661..04d6db359 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -1404,7 +1404,7 @@ define([ rules.forEach(function (obj) { getConditions($rulesC, false, rules, obj, $b); }); - $addC.before($rulesC); // XXX + $addC.before($rulesC); }); }; redraw(); @@ -3112,7 +3112,6 @@ define([ window.onbeforeunload = undefined; $send.removeAttr('disabled'); - //UI.alert(Messages.form_sent); // XXX not needed anymore? $send.text(Messages.form_update); APP.hasAnswered = true; APP.answeredInForm = false; @@ -4090,7 +4089,6 @@ define([ }; refreshAnon(); - // XXX UPDATE KEYS "form_anonyous_on", "form_anonymous_off" and "form_anonymous" // Allow guest(anonymous) answers var privacyContainer = h('div.cp-form-privacy-container'); var $privacy = $(privacyContainer); diff --git a/www/form/templates.js b/www/form/templates.js index c4eb93912..2aef99c24 100644 --- a/www/form/templates.js +++ b/www/form/templates.js @@ -1,7 +1,6 @@ define([ '/customize/messages.js' ], function (Messages) { - Messages.form_template_poll = "Quick poll"; // XXX update key var pollValues = []; var d8 = new Date(); d8.setDate(d8.getDate() - d8.getDay() + 7); // set sunday