From 2688f2c3cc903aabbb99a810be19e007eadb0506 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Thu, 11 Dec 2014 11:44:19 -0500 Subject: [PATCH] Survey cancel button Need to clean up lingering question object if cancel is pressed on the survey maker modal --- awx/ui/static/js/helpers/Survey.js | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js index ec16839efd..17fabdf65e 100644 --- a/awx/ui/static/js/helpers/Survey.js +++ b/awx/ui/static/js/helpers/Survey.js @@ -507,6 +507,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', if(scope.mode === 'add'){ questions = []; } + else scope.survey_questions = []; $(me).dialog('close'); };