새메시지, refreshMailboxList() 가 여러번 불릴 것에 대비
This commit is contained in:
+16
-1
@@ -207,6 +207,18 @@ function refreshMailboxList(obj){
|
|||||||
|
|
||||||
$mailboxList.empty();
|
$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:수뇌인 경우 각국에 대해 외교 국메를 넣을 수 있어야함.
|
//TODO:수뇌인 경우 각국에 대해 외교 국메를 넣을 수 있어야함.
|
||||||
|
|
||||||
$.each(obj.nation, function(){
|
$.each(obj.nation, function(){
|
||||||
@@ -267,7 +279,10 @@ function refreshMailboxList(obj){
|
|||||||
$favorite.append($ourCountry);
|
$favorite.append($ourCountry);
|
||||||
$favorite.append($toPublic);
|
$favorite.append($toPublic);
|
||||||
|
|
||||||
var $lastContact = $('<option id="last_contact" value="-1"></option>').hide();
|
$lastContact = $('<option id="last_contact" value="-1"></option>').hide();
|
||||||
|
if(lastContact){
|
||||||
|
$lastContact.show().val(lastContact.id).html(lastContact.textName);
|
||||||
|
}
|
||||||
$favorite.append($lastContact);
|
$favorite.append($lastContact);
|
||||||
//TODO:운영자를 추가하는 코드도 넣을 것.
|
//TODO:운영자를 추가하는 코드도 넣을 것.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user