Merge pull request #594 from emanuelschuetze/last-1.4a1-changes

Fixed #553: Switch projector control scroll arrows
This commit is contained in:
Oskar Hahn 2013-04-15 13:08:19 -07:00
commit 329e488cf2
2 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@
</a> </a>
</p> </p>
<p> <p>
<a class="projector_edit btn btn-mini" href="{% url 'projector_up' %}" title="{% trans 'Scroll text up' %}"> <a class="projector_edit btn btn-mini" href="{% url 'projector_up' %}" title="{% trans 'Scroll visible view up' %}">
<i class="icon-arrow-up"></i> <i class="icon-arrow-up"></i>
</a><br> </a><br>
<a class="projector_edit btn btn-mini" href="{% url 'projector_down' %}" title="{% trans 'Scroll text down' %}"> <a class="projector_edit btn btn-mini" href="{% url 'projector_down' %}" title="{% trans 'Scroll visible view down' %}">
<i class="icon-arrow-down"></i> <i class="icon-arrow-down"></i>
</a> </a>
</p> </p>

View File

@ -216,9 +216,9 @@ class ProjectorEdit(RedirectView):
config['bigger'] = int(config['bigger']) + 20 config['bigger'] = int(config['bigger']) + 20
elif direction == 'smaller': elif direction == 'smaller':
config['bigger'] = int(config['bigger']) - 20 config['bigger'] = int(config['bigger']) - 20
elif direction == 'up':
config['up'] = int(config['up']) - 10
elif direction == 'down': elif direction == 'down':
config['up'] = int(config['up']) - 10
elif direction == 'up':
if config['up'] < 0: if config['up'] < 0:
config['up'] = int(config['up']) + 10 config['up'] = int(config['up']) + 10
elif direction == 'clean': elif direction == 'clean':