mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 18:37:36 -02:30
fixed Firefox error for submitting survey question
hadn't passed the 'event' object as part of hte ng-click event
This commit is contained in:
@@ -261,7 +261,7 @@ angular.module('SurveyQuestionFormDefinition', [])
|
|||||||
ngClick: 'cancelQuestion($event)'
|
ngClick: 'cancelQuestion($event)'
|
||||||
},
|
},
|
||||||
submit_question: {
|
submit_question: {
|
||||||
ngClick: 'submitQuestion()',
|
ngClick: 'submitQuestion($event)',
|
||||||
ngDisabled: true, //'survey_question.$valid', //"!question_name || !variable || !type || ((type.type==='multiplechoice' || type.type === 'multiselect' ) && !choices)", //|| type.type===multiselect ',//'!question_name || !variable || !type' ,
|
ngDisabled: true, //'survey_question.$valid', //"!question_name || !variable || !type || ((type.type==='multiplechoice' || type.type === 'multiselect' ) && !choices)", //|| type.type===multiselect ',//'!question_name || !variable || !type' ,
|
||||||
'class': 'btn btn-sm btn-primary',
|
'class': 'btn btn-sm btn-primary',
|
||||||
label: 'Add Question'
|
label: 'Add Question'
|
||||||
|
|||||||
@@ -709,7 +709,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
scope.survey_question_form.choices.$setPristine();
|
scope.survey_question_form.choices.$setPristine();
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.submitQuestion = function(){
|
scope.submitQuestion = function(event){
|
||||||
var data = {},
|
var data = {},
|
||||||
fld,
|
fld,
|
||||||
key, elementID;
|
key, elementID;
|
||||||
|
|||||||
Reference in New Issue
Block a user