mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
adding comments to survey code
helps with refactoring
This commit is contained in:
@@ -112,6 +112,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
|
|
||||||
scope.resetForm();
|
scope.resetForm();
|
||||||
Wait('start');
|
Wait('start');
|
||||||
|
//for adding a job template:
|
||||||
if(scope.mode === 'add'){
|
if(scope.mode === 'add'){
|
||||||
tempSurv.survey_name = scope.survey_name;
|
tempSurv.survey_name = scope.survey_name;
|
||||||
tempSurv.survey_description = scope.survey_description;
|
tempSurv.survey_description = scope.survey_description;
|
||||||
@@ -126,6 +127,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
scope.finalizeQuestion(tempSurv.survey_questions[i], i);
|
scope.finalizeQuestion(tempSurv.survey_questions[i], i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//editing an existing job template:
|
||||||
else{
|
else{
|
||||||
// Get the existing record
|
// Get the existing record
|
||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
|
|||||||
Reference in New Issue
Block a user