Commit e39154b7 by Brad Melin

hide element outline after poll is submitted; fixes js bug where focus may be…

hide element outline after poll is submitted; fixes js bug where focus may be given to another poll block on the same page
parent ed40affe
...@@ -64,6 +64,10 @@ ...@@ -64,6 +64,10 @@
padding-left: 1em; padding-left: 1em;
} }
.poll-results-wrapper:focus {
outline: none;
}
ul.poll-answers-results { ul.poll-answers-results {
list-style-type: none !important; list-style-type: none !important;
} }
......
...@@ -211,7 +211,7 @@ function PollUtil (runtime, element, pollType) { ...@@ -211,7 +211,7 @@ function PollUtil (runtime, element, pollType) {
data: JSON.stringify({}), data: JSON.stringify({}),
success: function (data) { success: function (data) {
$('div.poll-block', element).html(self.resultsTemplate(data)); $('div.poll-block', element).html(self.resultsTemplate(data));
$('.poll-results-wrapper').focus(); $('.poll-results-wrapper', element).focus();
whenImagesLoaded(adjustGaugeBackground); whenImagesLoaded(adjustGaugeBackground);
} }
}); });
......
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