Remove Conditional section text in edit mode

pull/1/head
yflory 3 years ago
parent 600cca564d
commit eb1d8478d6

@ -1011,8 +1011,6 @@ define([
get: function (opts, a, n, ev, block) { get: function (opts, a, n, ev, block) {
var sortable = h('div.cp-form-section-sortable'); var sortable = h('div.cp-form-section-sortable');
var tag = h('div.cp-form-section-edit', [ var tag = h('div.cp-form-section-edit', [
h('i.fa.fa-question'),
h('span', Messages.form_type_section),
sortable sortable
]); ]);
if (APP.isEditor) { if (APP.isEditor) {
@ -3311,6 +3309,11 @@ define([
editButtons = h('div.cp-form-edit-buttons-container', [ fakeEdit, del ]); editButtons = h('div.cp-form-edit-buttons-container', [ fakeEdit, del ]);
changeType = h('div.cp-form-block-type', [
model.icon.cloneNode(),
h('span', Messages['form_type_'+type])
]);
// Values // Values
if (data.edit) { if (data.edit) {
var edit = h('button.btn.btn-default.cp-form-edit-button', [ var edit = h('button.btn.btn-default.cp-form-edit-button', [
@ -3364,11 +3367,6 @@ define([
onEdit(temp[uid]); onEdit(temp[uid]);
} }
changeType = h('div.cp-form-block-type', [
model.icon.cloneNode(),
h('span', Messages['form_type_'+type])
]);
Messages.form_changeTypeConfirm = "Select the new type of this question and click OK."; // XXX Messages.form_changeTypeConfirm = "Select the new type of this question and click OK."; // XXX
Messages.form_corruptAnswers = "Changing the type may corrupt existing answers"; Messages.form_corruptAnswers = "Changing the type may corrupt existing answers";
if (Array.isArray(model.compatible)) { if (Array.isArray(model.compatible)) {

Loading…
Cancel
Save