From 46e249c485588fe3db8a98866a44af662cc3617d Mon Sep 17 00:00:00 2001 From: Yoan Le Clanche Date: Fri, 1 Feb 2019 10:00:15 +0100 Subject: [PATCH] users can now manually enter an user id before ending a message --- teleforma/templates/postman/base_write.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/teleforma/templates/postman/base_write.html b/teleforma/templates/postman/base_write.html index 23ba98ed..d3eb8d32 100644 --- a/teleforma/templates/postman/base_write.html +++ b/teleforma/templates/postman/base_write.html @@ -147,10 +147,15 @@ $("#id_recipients").val($('#_professorSelect').val()); if($('#_adminSelect').val() && recipientCategory === 'admin') $("#id_recipients").val($('#_adminSelect').val()); + + if($("#id_recipients").val()==='auto') + $('#id_recipients').parent().parent().hide(); + else + $('#id_recipients').parent().parent().show(); } // hide recipients fields - $('#id_recipients').parent().parent().hide(); + {#$('#id_course').parent().parent().hide();#} $('[name="recipient_category"]').bind('change', update_desk_messages); -- 2.39.5