|
|
@ -2765,6 +2765,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
//Messages.form_changeType = "Change type"; // XXX
|
|
|
|
//Messages.form_changeType = "Change type"; // XXX
|
|
|
|
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_breakAnswers = "Changing the type may corrupt existing answers";
|
|
|
|
if (Array.isArray(model.compatible)) {
|
|
|
|
if (Array.isArray(model.compatible)) {
|
|
|
|
changeType = h('div.cp-form-block-type.editable', [
|
|
|
|
changeType = h('div.cp-form-block-type.editable', [
|
|
|
|
model.icon.cloneNode(),
|
|
|
|
model.icon.cloneNode(),
|
|
|
@ -2783,6 +2784,9 @@ define([
|
|
|
|
});
|
|
|
|
});
|
|
|
|
var tag = h('div.radio-group', els);
|
|
|
|
var tag = h('div.radio-group', els);
|
|
|
|
var changeTypeContent = [
|
|
|
|
var changeTypeContent = [
|
|
|
|
|
|
|
|
APP.answers && Object.keys(APP.answers).length ?
|
|
|
|
|
|
|
|
h('div.alert.alert-warning', Messages.form_breakAnswers) :
|
|
|
|
|
|
|
|
undefined,
|
|
|
|
h('p', Messages.form_changeTypeConfirm),
|
|
|
|
h('p', Messages.form_changeTypeConfirm),
|
|
|
|
tag
|
|
|
|
tag
|
|
|
|
];
|
|
|
|
];
|
|
|
|