Workaround to prevent screen jumps in assignment detail (Fixed #2555).

Fixed also unexpected ballot creation while uib-tab updates.
Now button instead of tab is used for creating new ballot.
This commit is contained in:
Emanuel Schütze 2017-02-24 22:33:23 +01:00
parent e0391df94a
commit 7630553303

View File

@ -122,8 +122,7 @@
</div>
<h3 translate>Election result</h3>
<button os-perms="assignments.can_manage" ng-show="assignment.polls.length == 0"
ng-click="createBallot()" class="btn btn-default btn-sm">
<button os-perms="assignments.can_manage" ng-click="createBallot()" class="btn btn-default btn-sm">
<i class="fa fa-bar-chart fa-lg"></i>
<translate>New ballot</translate>
</button>
@ -268,13 +267,8 @@
</div>
</div>
</uib-tab>
<!-- new ballot tab -->
<uib-tab select="createBallot()" index="assignment.polls.length">
<uib-tab-heading>
<i class="fa fa-plus"></i>
<translate>New ballot</translate>
</uib-tab-heading>
</uib-tab>
</uib-tabset>
<!-- Workaround to prevent page scrolling up after autoupdate. -->
<div style="height: 700px"><div>
</div>