diff --git a/openslides/projector/static/javascript/projector-control.js b/openslides/projector/static/javascript/projector-control.js index 0cb33975e..95b758c0a 100644 --- a/openslides/projector/static/javascript/projector-control.js +++ b/openslides/projector/static/javascript/projector-control.js @@ -84,6 +84,7 @@ $(function() { } $( "#iframe" ).css('zoom', '0.25'); } + // activate an element to show it on projector $('.activate_link').click(function(event) { event.preventDefault(); @@ -183,7 +184,10 @@ $(function() { }); }); - $('#overlay-form').ajaxForm(function() { - alert("Thank you for your comment!"); + $('#overlay_message').ajaxForm({ + dataType: 'json', + success: function(data) { + $('#overlay_message_text').val(data['overlay_message']); + } }); }); diff --git a/openslides/projector/templates/projector/control_overlay_message.html b/openslides/projector/templates/projector/control_overlay_message.html index e2082d8c1..7eac70430 100644 --- a/openslides/projector/templates/projector/control_overlay_message.html +++ b/openslides/projector/templates/projector/control_overlay_message.html @@ -1,8 +1,8 @@ {% load staticfiles %} {% load i18n %} {% load tags %} -