Commit 87aa8a3e by Jonathan Piacenti

Appearance tweaks, per QA Feedback.

parent cb450d50
......@@ -145,7 +145,7 @@ li.poll-result .poll-image {
.survey-table thead tr th {
font-weight: bold;
font-size: .8rem;
font-size: .9rem;
}
.survey-table .survey-row {
......
<script id="poll-results-template" type="text/html">
<h2 class="poll-header">{{display_name}}</h2>
<h3 class="poll-header">{{display_name}}</h3>
<div class="poll-question-container">{{{question}}}</div>
<ul class="poll-answers-results">
{{#each tally}}
......@@ -35,7 +35,7 @@
<div class="poll-footnote">Results gathered from {{total}} respondent{{#if plural}}s{{/if}}.</div>
{{#if feedback}}
<hr />
<h2 class="poll-header">Feedback</h2>
<h3 class="poll-header">Feedback</h3>
<div class="poll-feedback">
{{{feedback}}}
</div>
......
......@@ -29,7 +29,7 @@
<div class="poll-footnote">Results gathered from {{total}} respondent{{#if plural}}s{{/if}}.</div>
{{#if feedback}}
<hr />
<h2 class="poll-header">Feedback</h2>
<h3 class="poll-header">Feedback</h3>
<div class="poll-feedback">
{{{feedback}}}
</div>
......
......@@ -26,6 +26,10 @@ function PollEditUtil(runtime, element, pollType) {
// collisions in the real world.
var bottom = $(button_mapping[context_key]['bottomMarker']);
var new_item_dict = self.extend({}, button_mapping[context_key]['template']);
// We have to insert this key now rather than keep it in the template
// so that it's generated with the current time. If we constructed it as part
// of the template, all the keys would be the same, since the time would be calculated
// once.
new_item_dict['key'] = Date.now();
var new_item = $(self.answerTemplate({'items': [new_item_dict]}));
bottom.before(new_item);
......
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