Commit 75d6d7b9 by Jonathan Piacenti

Semantic correction to answer adding button id name.

parent 108358bf
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</ul> </ul>
<div class="xblock-actions"> <div class="xblock-actions">
<ul> <ul>
<li class="action-item" id="poll-add-question"> <li class="action-item" id="poll-add-answer">
<a href="#" class="button action-button" onclick="return false;">Add Question</a> <a href="#" class="button action-button" onclick="return false;">Add Question</a>
</li> </li>
<li class="action-item"> <li class="action-item">
......
...@@ -26,7 +26,7 @@ function PollEditBlock(runtime, element) { ...@@ -26,7 +26,7 @@ function PollEditBlock(runtime, element) {
empowerDeletes(); empowerDeletes();
} }
$('#poll-add-question', element).click(function () { $('#poll-add-answer', element).click(function () {
pollLineItems.append(answerTemplate({'answers': [{'key': generateUUID(), 'text': ''}]})); pollLineItems.append(answerTemplate({'answers': [{'key': generateUUID(), 'text': ''}]}));
empowerDeletes(); empowerDeletes();
pollLineItems.last().scrollTop(); pollLineItems.last().scrollTop();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment