1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

Survey cancel button

Need to clean up lingering question object if cancel is pressed on the survey maker modal
This commit is contained in:
Jared Tabor 2014-12-11 11:44:19 -05:00
parent 7510714386
commit 2688f2c3cc

View File

@ -507,6 +507,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
if(scope.mode === 'add'){
questions = [];
}
else scope.survey_questions = [];
$(me).dialog('close');
};