From 4b0352d8f05b606ee5e2c0f960ad813fc3bd0f34 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 1 Mar 2018 03:31:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=88=EB=A9=94=EC=8B=9C=EC=A7=80,=20refresh?= =?UTF-8?q?MailboxList()=20=EA=B0=80=20=EC=97=AC=EB=9F=AC=EB=B2=88=20?= =?UTF-8?q?=EB=B6=88=EB=A6=B4=20=EA=B2=83=EC=97=90=20=EB=8C=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmp_msg/msg.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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:운영자를 추가하는 코드도 넣을 것.