remove unnecessary notes

pull/1/head
ansuz 3 years ago
parent cad514cc17
commit 3976bfae84

@ -1967,7 +1967,7 @@ define([
var switchMode = h('button.btn.btn-secondary', Messages.form_showIndividual); var switchMode = h('button.btn.btn-secondary', Messages.form_showIndividual);
$controls.hide().append(switchMode); $controls.hide().append(switchMode);
var show = function (answers, header) { // XXX var show = function (answers, header) {
var elements = content.order.map(function (uid) { var elements = content.order.map(function (uid) {
var block = form[uid]; var block = form[uid];
var type = block.type; var type = block.type;
@ -1975,7 +1975,7 @@ define([
if (!model || !model.printResults) { return; } if (!model || !model.printResults) { return; }
// Only use content if we're not viewing individual answers // Only use content if we're not viewing individual answers
var print = model.printResults(answers, uid, form, !header && content); // XXX var print = model.printResults(answers, uid, form, !header && content);
var q = h('div.cp-form-block-question', block.q || Messages.form_default); var q = h('div.cp-form-block-question', block.q || Messages.form_default);
@ -1992,7 +1992,7 @@ define([
$results.empty().append(elements); $results.empty().append(elements);
if (header) { $results.prepend(header); } if (header) { $results.prepend(header); }
}; };
show(answers); // XXX show(answers);
if (APP.isEditor || APP.isAuditor) { $controls.show(); } if (APP.isEditor || APP.isAuditor) { $controls.show(); }
@ -2050,7 +2050,7 @@ define([
} }
var span = UI.setHTML(h('span'), text); var span = UI.setHTML(h('span'), text);
var viewButton = h('button.btn.btn-secondary.small', Messages.form_viewButton); var viewButton = h('button.btn.btn-secondary.small', Messages.form_viewButton);
var div = h('div.cp-form-individual', [span, viewButton, warning, badge]); // XXX var div = h('div.cp-form-individual', [span, viewButton, warning, badge]);
$(viewButton).click(function () { $(viewButton).click(function () {
var res = {}; var res = {};
res[curve] = obj; res[curve] = obj;
@ -2059,7 +2059,7 @@ define([
summary = true; summary = true;
$s.click(); $s.click();
}); });
var header = h('div.cp-form-individual', [ // XXX var header = h('div.cp-form-individual', [
span.cloneNode(true), span.cloneNode(true),
back back
]); ]);

Loading…
Cancel
Save