beamer clean link
This commit is contained in:
parent
1f5d86a0fc
commit
508be2f4eb
@ -49,7 +49,7 @@
|
|||||||
{% trans "Adjust projector view" %}:
|
{% trans "Adjust projector view" %}:
|
||||||
<a class="beamer_edit" href="{% url beamer_bigger %}"><img src="/static/images/icons/zoom-in.png"></a> <a class="beamer_edit" href="{% url beamer_smaller %}"><img src="/static/images/icons/zoom-out.png"></a>
|
<a class="beamer_edit" href="{% url beamer_bigger %}"><img src="/static/images/icons/zoom-in.png"></a> <a class="beamer_edit" href="{% url beamer_smaller %}"><img src="/static/images/icons/zoom-out.png"></a>
|
||||||
<a class="beamer_edit" href="{% url beamer_up %}"><img src="/static/images/icons/go-up.png"></a> <a class="beamer_edit" href="{% url beamer_down %}"><img src="/static/images/icons/go-down.png"></a>
|
<a class="beamer_edit" href="{% url beamer_up %}"><img src="/static/images/icons/go-up.png"></a> <a class="beamer_edit" href="{% url beamer_down %}"><img src="/static/images/icons/go-down.png"></a>
|
||||||
{# <a href="{% url item_activate 0 %}"><img src="/static/images/icons/view-restore.png"></a> #}
|
<a class="beamer_edit" href="{% url beamer_clean %}"><img src="/static/images/icons/view-restore.png"></a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<table id="menu-overview" class="agendatable">
|
<table id="menu-overview" class="agendatable">
|
||||||
|
@ -64,4 +64,6 @@ urlpatterns = patterns('agenda.views',
|
|||||||
url(r'^beamer/up$', 'beamer_edit', {'direction': 'up'}, name='beamer_up'),
|
url(r'^beamer/up$', 'beamer_edit', {'direction': 'up'}, name='beamer_up'),
|
||||||
|
|
||||||
url(r'^beamer/down$', 'beamer_edit', {'direction': 'down'}, name='beamer_down'),
|
url(r'^beamer/down$', 'beamer_edit', {'direction': 'down'}, name='beamer_down'),
|
||||||
|
|
||||||
|
url(r'^beamer/clean$', 'beamer_edit', {'direction': 'clean'}, name='beamer_clean'),
|
||||||
)
|
)
|
||||||
|
@ -100,6 +100,9 @@ def beamer_edit(request, direction):
|
|||||||
config_set('up', int(config_get('up', 0)) - 10)
|
config_set('up', int(config_get('up', 0)) - 10)
|
||||||
elif direction == 'down':
|
elif direction == 'down':
|
||||||
config_set('up', int(config_get('up', 0)) + 10)
|
config_set('up', int(config_get('up', 0)) + 10)
|
||||||
|
elif direction == 'clean':
|
||||||
|
config_set('up', 0)
|
||||||
|
config_set('bigger', 100)
|
||||||
|
|
||||||
if request.is_ajax():
|
if request.is_ajax():
|
||||||
return ajax_request({})
|
return ajax_request({})
|
||||||
|
Loading…
Reference in New Issue
Block a user