diff gpp/messages/static/js/tabbed_messages.js @ 430:9df368d9775d

Fix bug where messages were never getting replied to.
author Brian Neal <bgneal@gmail.com>
date Thu, 05 May 2011 02:58:44 +0000
parents d0f0800eef0c
children 9f888dbe61ce
line wrap: on
line diff
--- a/gpp/messages/static/js/tabbed_messages.js	Tue May 03 02:56:58 2011 +0000
+++ b/gpp/messages/static/js/tabbed_messages.js	Thu May 05 02:58:44 2011 +0000
@@ -18,6 +18,8 @@
             $('#id_receiver').val(msg.sender);
             $('#id_subject').val(msg.re_subject);
             $('#id_message').val(msg.re_content);
+            $('#msg_compose_form').append('<input type="hidden" name="reply_to" value="' +
+               $msgDialog.msgId + '" />');
          }
       },
       ajaxOptions: {
@@ -140,7 +142,7 @@
       data: $(form).serialize(),
       dataType: 'html',
       success: function (data, textStatus) {
-         $('#ui-tabs-1').html(data);
+         $(selectedTab.panel).html(data);
       },
       error: function (xhr, textStatus, ex) {
          alert('Oops, an error occurred. ' + xhr.statusText + ' - ' +