diff --git a/hwe/js/msg.js b/hwe/js/msg.js index 76dddede..493849bc 100644 --- a/hwe/js/msg.js +++ b/hwe/js/msg.js @@ -150,6 +150,7 @@ function redrawMsg(deferred){ msg.defaultIcon = pathConfig.sharedIcon+'/default.jpg'; + msg.level = myGeneralLevel; var msgHtml = TemplateEngine(messageTemplate, msg); @@ -331,18 +332,18 @@ function refreshMailboxList(obj){ function registerGlobal(basicInfo){ - myNation = { + window.myNation = { 'id':basicInfo.myNationID, 'mailbox':basicInfo.myNationID+9000, 'color':'#000000', 'nation':'재야' }; - lastMsg = { + window.lastMsg = { id : basicInfo.lastContact }; - myGeneralID = basicInfo.generalID; - isChief = basicInfo.isChief; - myGeneralLevel = basicInfo.generalLevel; + window.myGeneralID = basicInfo.generalID; + window.isChief = basicInfo.isChief; + window.myGeneralLevel = basicInfo.generalLevel; } function activateMessageForm(){ diff --git a/hwe/js/templates/message.html b/hwe/js/templates/message.html index cc27d8ae..a56b4f99 100644 --- a/hwe/js/templates/message.html +++ b/hwe/js/templates/message.html @@ -42,5 +42,5 @@
<%e(text)%>
<%if(this.option && this.option.action) {%>
- + >수락 >거절
<%} %> \ No newline at end of file