fixed error by activating a message, if it was only on a specific slide.
This commit is contained in:
parent
7e7ab210ab
commit
79893687f3
@ -11,7 +11,7 @@
|
|||||||
<script type="text/javascript" src="{% static 'javascript/projector-control.js' %}"></script>
|
<script type="text/javascript" src="{% static 'javascript/projector-control.js' %}"></script>
|
||||||
<script type="text/javascript" src="{% static 'javascript/jquery.cookie.js' %}"></script>
|
<script type="text/javascript" src="{% static 'javascript/jquery.cookie.js' %}"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
function switchButtons(which) {
|
function switchButtons(which) {
|
||||||
if (which == 'stop') {
|
if (which == 'stop') {
|
||||||
$( "#countdown_play" ).hide();
|
$( "#countdown_play" ).hide();
|
||||||
@ -194,8 +194,8 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{% for overlay in overlays %}
|
{% for overlay in overlays %}
|
||||||
<li>
|
<li>
|
||||||
<input type="checkbox" name="{{ overlay }}" onchange="submit()"
|
<input type="checkbox" name="{{ overlay.def_name }}" onchange="submit()"
|
||||||
{% if overlay.active %} checked="checked"{% endif %}> {{ overlay }}:
|
{% if overlay.active %} checked="checked"{% endif %}> {{ overlay }}:
|
||||||
{# Countdown #}
|
{# Countdown #}
|
||||||
{% if overlay.def_name == "Countdown" %}
|
{% if overlay.def_name == "Countdown" %}
|
||||||
<span class="projector_countdown_spinbox">
|
<span class="projector_countdown_spinbox">
|
||||||
@ -204,7 +204,7 @@
|
|||||||
<img src="{% static 'images/icons/document-save.png' %}" />
|
<img src="{% static 'images/icons/document-save.png' %}" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a class="projector_countdown_btn" href="{% url countdown_reset %}" title="{% trans 'Reset countdown' %}" onclick="javascript:switchButtons('play')"><button
|
<a class="projector_countdown_btn" href="{% url countdown_reset %}" title="{% trans 'Reset countdown' %}" onclick="javascript:switchButtons('play')"><button
|
||||||
type="submit" class="button" style="padding:4px;" name='message-clean'>
|
type="submit" class="button" style="padding:4px;" name='message-clean'>
|
||||||
<span class="icon backward"> </span>
|
<span class="icon backward"> </span>
|
||||||
</button></a>
|
</button></a>
|
||||||
@ -221,21 +221,18 @@
|
|||||||
<p></p>
|
<p></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if overlay.def_name == "Message" %}
|
{% if overlay.def_name == "Message" %}
|
||||||
<form action="" method="post">{% csrf_token %}
|
<nobr>
|
||||||
<br>
|
<input name='message_text' type='text' style='width: 70%'
|
||||||
<nobr>
|
value="{% get_config 'projector_message' %}">
|
||||||
<input name='message_text' type='text' style='width: 70%'
|
<button type="submit"
|
||||||
value="{% get_config 'projector_message' %}">
|
class="button" style="padding:4px 0;" name='message-clean'>
|
||||||
<button type="submit"
|
<span class="icon clear"> </span>
|
||||||
class="button" style="padding:4px 0;" name='message-clean'>
|
</button>
|
||||||
<span class="icon clear"> </span>
|
</nobr>
|
||||||
</button>
|
<br>
|
||||||
</nobr>
|
<button type="submit" class="button" name='message'>
|
||||||
<br>
|
<span class="icon ok">{% trans 'Apply' %}</span>
|
||||||
<button type="submit" class="button" name='message'>
|
</button>
|
||||||
<span class="icon ok">{% trans 'Apply' %}</span>
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user