diff gpp/messages/static/js/tabbed_messages.js @ 428:77b3b01843b5

Gave the beta private messages a 'compose to' view. Tweaked the color of the tables to match the jquery ui theme.
author Brian Neal <bgneal@gmail.com>
date Sun, 01 May 2011 02:11:48 +0000
parents 76ba9478ebbd
children d0f0800eef0c
line wrap: on
line diff
--- a/gpp/messages/static/js/tabbed_messages.js	Tue Apr 26 02:11:00 2011 +0000
+++ b/gpp/messages/static/js/tabbed_messages.js	Sun May 01 02:11:48 2011 +0000
@@ -6,7 +6,12 @@
       },
       load: function(event, ui) {
          selectedTab = ui;
-         if (doReply && ui.index == 1)
+         if (ui.index == 1 && receiver && !doReply)
+         {
+            $('#id_receiver').val(receiver);
+            receiver = '';
+         }
+         else if (doReply && ui.index == 1)
          {
             doReply = false;
             var msg = msgCache[$msgDialog.msgId];