외교 서신 레벨 지정

This commit is contained in:
2018-07-19 22:19:26 +09:00
parent 3142714c11
commit 4a7b84d6de
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -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(){
+1 -1
View File
@@ -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">수락</button> <button class="prompt_no btn_prompt">거절</button>
<button class="prompt_yes btn_prompt" <%level<4?'disabled="disabled"':''%>></button>>수락</button> <button class="prompt_no btn_prompt" <%level<4?'disabled="disabled"':''%></button>>거절</button>
</div><%} %></div></div>