From 4a7b84d6de1dd7ffa061535bddbb8390455d665f Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 19 Jul 2018 22:19:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=B8=EA=B5=90=20=EC=84=9C=EC=8B=A0=20?= =?UTF-8?q?=EB=A0=88=EB=B2=A8=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/msg.js | 11 ++++++----- hwe/js/templates/message.html | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) 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