From 340360d024bd23022933d3c5aea6d066fc13fcf9 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 19 Jul 2018 23:59:27 +0900 Subject: [PATCH] =?UTF-8?q?=EB=93=B1=EC=9A=A9=EC=9E=A5=EC=9D=98=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=EC=97=90=EB=8F=84=20=EB=88=84=EB=A5=BC?= =?UTF-8?q?=EC=88=98=20=EC=97=86=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/js/msg.js | 7 ++++++- hwe/js/templates/message.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hwe/js/msg.js b/hwe/js/msg.js index 493849bc..68731def 100644 --- a/hwe/js/msg.js +++ b/hwe/js/msg.js @@ -150,7 +150,12 @@ function redrawMsg(deferred){ msg.defaultIcon = pathConfig.sharedIcon+'/default.jpg'; - msg.level = myGeneralLevel; + if(msgType == 'diplomacy'){ + msg.allowButton = myGeneralLevel>4; + } + else{ + msg.allowButton = true; + } var msgHtml = TemplateEngine(messageTemplate, msg); diff --git a/hwe/js/templates/message.html b/hwe/js/templates/message.html index a56b4f99..e701c042 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