for a textarea answer, default answer field should be a text area

This commit is contained in:
Jared Tabor
2014-09-26 14:34:01 -04:00
parent 006da3219a
commit 9114cb2d89
2 changed files with 15 additions and 1 deletions

View File

@@ -564,6 +564,9 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
if(scope[fld]){
if(fld === "type"){
data[fld] = scope[fld].type;
if(scope[fld].type==="textarea"){
data["default"] = scope.default_textarea;
}
if(scope[fld].type==="integer" || scope[fld].type==="float"){
data[min] = $('#answer_min').val();
data[max] = $('#answer_max').val();