# HG changeset patch # User Brian Neal # Date 1379459848 18000 # Node ID c09ed90c891b52b851881b3eae0c94df58df662b # Parent a6c664e04649d63842bbcbf32791f8049c1e6aec Fix regression in messages that efb525863a75 broke. Changeset efb525863a75 broke the feature that auto-populated the To: field in a private message when you clicked on a user's PM button. diff -r a6c664e04649 -r c09ed90c891b messages/static/js/tabbed_messages.js --- a/messages/static/js/tabbed_messages.js Sun Sep 15 17:00:52 2013 -0500 +++ b/messages/static/js/tabbed_messages.js Tue Sep 17 18:17:28 2013 -0500 @@ -18,7 +18,13 @@ }, load: function(event, ui) { selectedTab = ui; - if (doReply && ui.tab.index() == 1) + + if (ui.tab.index() == 1 && receiver && !doReply) + { + $('#id_receiver').val(receiver); + receiver = ''; + } + else if (doReply && ui.tab.index() == 1) { doReply = false; var msg = msgCache[$msgDialog.msgId];