mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03: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:
parent
ee42ae8571
commit
6d10e31ea8
@ -261,7 +261,7 @@ angular.module('SurveyQuestionFormDefinition', [])
|
||||
ngClick: 'cancelQuestion($event)'
|
||||
},
|
||||
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' ,
|
||||
'class': 'btn btn-sm btn-primary',
|
||||
label: 'Add Question'
|
||||
|
||||
@ -709,7 +709,7 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
||||
scope.survey_question_form.choices.$setPristine();
|
||||
};
|
||||
|
||||
scope.submitQuestion = function(){
|
||||
scope.submitQuestion = function(event){
|
||||
var data = {},
|
||||
fld,
|
||||
key, elementID;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user