diff --git a/media/static_templates/question.html b/media/static_templates/question.html index 1e0e3d1..da9499c 100644 --- a/media/static_templates/question.html +++ b/media/static_templates/question.html @@ -192,7 +192,7 @@ </div> <div class="form-group col-md-12"> <hr> - <table id="answer_table" class="table table-questions"> + <table id="answer_table_modal" class="table table-questions"> <tbody> <tr> <th>Question:</th> @@ -204,7 +204,7 @@ <tfoot> <tr> <th colspan="2"> - <a class="btn btn-info btn-sm" href="javascript:add_answers($('#answer_table_{$T.question$index}'),5)"> + <a class="btn btn-info btn-sm" href="javascript:add_answers($('#answer_table_modal'),5)"> <i class="fa fa-plus-circle" aria-hidden="true"></i> add 5 more answers </a> diff --git a/templates/helios/templates/election_questions.html b/templates/helios/templates/election_questions.html index 27f08ed..f4886f2 100644 --- a/templates/helios/templates/election_questions.html +++ b/templates/helios/templates/election_questions.html @@ -52,7 +52,7 @@ function refresh() { $('#questions').processTemplate({'questions' : QUESTIONS, 'admin_p' : ADMIN_P}); - add_answers($('#answer_table'),DEFAULT_NUM_ANSWERS); + add_answers($('#answer_table_modal'),DEFAULT_NUM_ANSWERS); } function save_questions(callback) {