]> git.parisson.com Git - teleforma.git/commitdiff
update_recipients before form (MacOS bug)
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 10 Mar 2014 11:08:00 +0000 (12:08 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 10 Mar 2014 11:08:00 +0000 (12:08 +0100)
teleforma/templates/postman/base_write.html

index 8cf0d1db3df39361454d7c790fc9d6e88d4c4161..ff37560392f4d4421bdc51c2617441495a646495 100644 (file)
@@ -3,6 +3,20 @@
 {% load teleforma_tags %}
 
 {% block content %}
+
+<script type="text/javascript">
+function update_recipients() {
+       $("#_professorSelect").click(function () {
+      var htmlStr = $(this).val();
+      $("#id_recipients").val(htmlStr);
+    });
+       $("#_adminSelect").click(function () {
+      var htmlStr = $(this).val();
+      $("#id_recipients").val(htmlStr);
+    });
+}
+</script>
+
 <div id="postman" class="desk_messages">
 <h1>{% block pm_write_title %}{% endblock %}</h1>
 
 <a href="#" class="component_icon button icon_next" id="send_button">{% trans "Send" %}</a>
 </div>
 </div>
-<script type="text/javascript">document.getElementById("id_subject").focus();</script>
-<script type="text/javascript">
-function update_recipients() {
-$("#_professorSelect").click(function () {
-      var htmlStr = $(this).val();
-      $("#id_recipients").val(htmlStr);
-    });
-$("#_adminSelect").click(function () {
-      var htmlStr = $(this).val();
-      $("#id_recipients").val(htmlStr);
-    });
-}
 
+<script type="text/javascript">
+document.getElementById("id_subject").focus();
 $('#send_button').click(function() {
   $('#_messageForm').submit();
 });
-
 </script>
-{% endblock %}
\ No newline at end of file
+
+{% endblock %}