Merge pull request #3014 from emanuelschuetze/issue-2555

Workaround to prevent screen jumps in assignment detail (Fixed #2555).
This commit is contained in:
Norman Jäckel 2017-02-27 15:18:14 +01:00 committed by GitHub
commit 8860025e59

View File

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