From 50e174ea43f2bb133ee47aae4e4e356e6392a7a1 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 17 Feb 2015 18:25:04 -0500 Subject: [PATCH] Remove stale error messages on survey when adding another question any stale errors messages need to be cleared. --- awx/ui/static/js/helpers/Survey.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js index e5f6289522..cc1834accf 100644 --- a/awx/ui/static/js/helpers/Survey.js +++ b/awx/ui/static/js/helpers/Survey.js @@ -577,11 +577,14 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', scope.int_max = null; scope.float_min = null; scope.float_max = null; + scope.duplicate = false; + scope.invalidChoice = false; + scope.minTextError = false; + scope.maxTextError = false; }; scope.addNewQuestion = function(){ // $('#add_question_btn').on("click" , function(){ - scope.duplicate = false; scope.addQuestion(); $('#survey_question_question_name').focus(); $('#add_question_btn').attr('disabled', 'disabled');