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:
parent
e0391df94a
commit
7630553303
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user