fix for datetime type
This commit is contained in:
parent
ad241361fe
commit
dca5016c25
|
@ -124,7 +124,7 @@ function editQuestion (dataArray){
|
||||||
$('#template-survery').tmpl(setEditData(l, $('.questions > .attributes').length + 1, d)).appendTo($('.questions'));
|
$('#template-survery').tmpl(setEditData(l, $('.questions > .attributes').length + 1, d)).appendTo($('.questions'));
|
||||||
checkQuestionsLength();
|
checkQuestionsLength();
|
||||||
textareaResizable(); // from textarea-lang-btn.js
|
textareaResizable(); // from textarea-lang-btn.js
|
||||||
if( (d.type > 1 && d.type < 5) || d.type == 6 ){
|
if(d.type > 1 && d.type < 5){
|
||||||
onQuestionTypeChanged( $(".questions .field-type:eq("+ i +")"), d.type );
|
onQuestionTypeChanged( $(".questions .field-type:eq("+ i +")"), d.type );
|
||||||
$.each(d.survey_question_options,function ( x, data ){
|
$.each(d.survey_question_options,function ( x, data ){
|
||||||
$('#template-survery-option').tmpl(setEditQuestionAttributes( l, "", data, x, "options" )).insertBefore($(".questions .field-type:eq("+ i +") .options .add-btn"));
|
$('#template-survery-option').tmpl(setEditQuestionAttributes( l, "", data, x, "options" )).insertBefore($(".questions .field-type:eq("+ i +") .options .add-btn"));
|
||||||
|
@ -140,6 +140,8 @@ function editQuestion (dataArray){
|
||||||
$('#template-survery-option').tmpl(setEditQuestionAttributes( l, "", data, x, "options" )).insertBefore($(".questions .field-type:eq("+ i +") .options .add-btn"));
|
$('#template-survery-option').tmpl(setEditQuestionAttributes( l, "", data, x, "options" )).insertBefore($(".questions .field-type:eq("+ i +") .options .add-btn"));
|
||||||
$(".questions .field-type:eq("+ i +") .options").data("index",x);
|
$(".questions .field-type:eq("+ i +") .options").data("index",x);
|
||||||
})
|
})
|
||||||
|
}else if(d.type == 6){
|
||||||
|
onQuestionTypeChanged( $(".questions .field-type:eq("+ i +")"), d.type );
|
||||||
}
|
}
|
||||||
l++;
|
l++;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue