mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
Survey maker type change fix
Made all custom fields set to pristine state when the user changes the question type
This commit is contained in:
parent
4a0afd97b0
commit
9c80dba4a2
@ -652,7 +652,6 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
||||
scope.default_float = "";
|
||||
scope.default_int = "";
|
||||
scope.default_textarea = "";
|
||||
scope.survey_question_form.choices.$setPristine();
|
||||
scope.choices = "";
|
||||
scope.text_min = "";
|
||||
scope.text_max = "" ;
|
||||
@ -662,6 +661,12 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
||||
scope.int_max = "";
|
||||
scope.float_min = "";
|
||||
scope.float_max = "";
|
||||
scope.survey_question_form.default.$setPristine();
|
||||
scope.survey_question_form.default_multiselect.$setPristine();
|
||||
scope.survey_question_form.default_float.$setPristine();
|
||||
scope.survey_question_form.default_int.$setPristine();
|
||||
scope.survey_question_form.default_textarea.$setPristine();
|
||||
scope.survey_question_form.choices.$setPristine();
|
||||
};
|
||||
|
||||
scope.submitQuestion = function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user