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:
Jared Tabor 2015-01-16 12:46:06 -05:00
parent ee42ae8571
commit 6d10e31ea8
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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;