diff --git a/tmp_msg/msg.js b/tmp_msg/msg.js index aa1698c0..15cd1a4e 100644 --- a/tmp_msg/msg.js +++ b/tmp_msg/msg.js @@ -206,6 +206,18 @@ function refreshMailboxList(obj){ var oldSelected = $mailboxList.val(); $mailboxList.empty(); + + var $lastContact = $('#last_contact'); + var lastContact = null; + if($lastContact.length > 0 && $lastContact.val()>=0){ + lastContact = { + id:$lastContact.val(), + textName:$lastContact.html() + }; + $lastContact = null; + } + + generalList = {}; //TODO:수뇌인 경우 각국에 대해 외교 국메를 넣을 수 있어야함. @@ -267,7 +279,10 @@ function refreshMailboxList(obj){ $favorite.append($ourCountry); $favorite.append($toPublic); - var $lastContact = $('').hide(); + $lastContact = $('').hide(); + if(lastContact){ + $lastContact.show().val(lastContact.id).html(lastContact.textName); + } $favorite.append($lastContact); //TODO:운영자를 추가하는 코드도 넣을 것.