Merge pull request #3472 from FinnStutzenstein/templateChanges
Template changes and IE fix
This commit is contained in:
commit
bed42b5c66
@ -77,20 +77,22 @@
|
||||
</div>
|
||||
|
||||
<!-- total votes (valid/invalid/casts) -->
|
||||
<tr class="total">
|
||||
<tr class="total" ng-if="poll.has_votes && poll.getVote('votesvalid').value !== null">
|
||||
<td>
|
||||
<translate>Valid ballots</translate>
|
||||
<td ng-if="poll.has_votes" ng-init="vote = poll.getVote('votesvalid')">
|
||||
<td ng-init="vote = poll.getVote('votesvalid')">
|
||||
{{ vote.value }} {{ vote.percentStr }}
|
||||
<tr class="total">
|
||||
|
||||
<tr class="total" ng-if="poll.has_votes && poll.getVote('votesinvalid').value !== null">
|
||||
<td>
|
||||
<translate>Invalid ballots</translate>
|
||||
<td ng-if="poll.has_votes" ng-init="vote = poll.getVote('votesinvalid')">
|
||||
<td ng-init="vote = poll.getVote('votesinvalid')">
|
||||
{{ vote.value }} {{ vote.percentStr }}
|
||||
<tr class="total bg-info">
|
||||
|
||||
<tr class="total bg-info" ng-if="poll.has_votes && poll.getVote('votescast').value !== null">
|
||||
<td>
|
||||
<translate>Casted ballots</translate>
|
||||
<td ng-if="poll.has_votes" ng-init="vote = poll.getVote('votescast')">
|
||||
<td ng-init="vote = poll.getVote('votescast')">
|
||||
{{ vote.value }} {{ vote.percentStr }}
|
||||
</table>
|
||||
</div>
|
||||
|
@ -218,7 +218,8 @@ angular.module('OpenSlidesApp.core.projector', ['OpenSlidesApp.core'])
|
||||
if (matchingElement) {
|
||||
// copy all changed properties.
|
||||
_.forEach(newElement, function (value, key) {
|
||||
if (newElement.hasOwnProperty(key) && !key.startsWith('$')) {
|
||||
// key has own property and does not start with a '$'.
|
||||
if (newElement.hasOwnProperty(key) && key.indexOf('$') != 0) {
|
||||
if (typeof matchingElement[key] === 'undefined' || matchingElement[key] !== value) {
|
||||
matchingElement[key] = value;
|
||||
}
|
||||
|
@ -312,7 +312,14 @@ angular.module('OpenSlidesApp.motions.pdf', ['OpenSlidesApp.core.pdf'])
|
||||
style: 'heading3',
|
||||
marginTop: 25,
|
||||
});
|
||||
reason.push(converter.convertHTML(motion.getReason(motionVersion), 'none'));
|
||||
reason.push({
|
||||
columns: [
|
||||
{
|
||||
width: '80%',
|
||||
stack: converter.convertHTML(motion.getReason(motionVersion), 'none'),
|
||||
},
|
||||
]
|
||||
});
|
||||
}
|
||||
return reason;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user