From 5116e41433f01df89d4c1d2758d8f9859066be2b Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 4 Feb 2015 11:34:23 -0500 Subject: [PATCH] adding comments to survey code helps with refactoring --- awx/ui/static/js/helpers/Survey.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/ui/static/js/helpers/Survey.js b/awx/ui/static/js/helpers/Survey.js index 7f6d8ac9fb..f41a5de6d2 100644 --- a/awx/ui/static/js/helpers/Survey.js +++ b/awx/ui/static/js/helpers/Survey.js @@ -112,6 +112,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', scope.resetForm(); Wait('start'); + //for adding a job template: if(scope.mode === 'add'){ tempSurv.survey_name = scope.survey_name; tempSurv.survey_description = scope.survey_description; @@ -126,6 +127,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper', scope.finalizeQuestion(tempSurv.survey_questions[i], i); } } + //editing an existing job template: else{ // Get the existing record Rest.setUrl(url);