mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Remove stale error messages on survey
when adding another question any stale errors messages need to be cleared.
This commit is contained in:
parent
a2121b7288
commit
50e174ea43
@ -577,11 +577,14 @@ angular.module('SurveyHelper', [ 'Utilities', 'RestServices', 'SchedulesHelper',
|
|||||||
scope.int_max = null;
|
scope.int_max = null;
|
||||||
scope.float_min = null;
|
scope.float_min = null;
|
||||||
scope.float_max = null;
|
scope.float_max = null;
|
||||||
|
scope.duplicate = false;
|
||||||
|
scope.invalidChoice = false;
|
||||||
|
scope.minTextError = false;
|
||||||
|
scope.maxTextError = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
scope.addNewQuestion = function(){
|
scope.addNewQuestion = function(){
|
||||||
// $('#add_question_btn').on("click" , function(){
|
// $('#add_question_btn').on("click" , function(){
|
||||||
scope.duplicate = false;
|
|
||||||
scope.addQuestion();
|
scope.addQuestion();
|
||||||
$('#survey_question_question_name').focus();
|
$('#survey_question_question_name').focus();
|
||||||
$('#add_question_btn').attr('disabled', 'disabled');
|
$('#add_question_btn').attr('disabled', 'disabled');
|
||||||
|
Loading…
Reference in New Issue
Block a user