forked from devsam/core
등용장의 경우에도 누를수 없는 경우 수정
This commit is contained in:
+6
-1
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -42,5 +42,5 @@
|
||||
<div class="msg_content"><%e(text)%></div>
|
||||
<%if(this.option && this.option.action) {%>
|
||||
<div class="msg_prompt">
|
||||
<button class="prompt_yes btn_prompt" <%level<4?'disabled="disabled"':''%>></button>>수락</button> <button class="prompt_no btn_prompt" <%level<4?'disabled="disabled"':''%></button>>거절</button>
|
||||
<button class="prompt_yes btn_prompt" <%allowButton?'':'disabled="disabled"'%>></button>>수락</button> <button class="prompt_no btn_prompt" <%allowButton?'':'disabled="disabled"'%></button>>거절</button>
|
||||
</div><%} %></div></div>
|
||||
Reference in New Issue
Block a user