외교 서신 레벨 지정
This commit is contained in:
+6
-5
@@ -150,6 +150,7 @@ function redrawMsg(deferred){
|
|||||||
|
|
||||||
|
|
||||||
msg.defaultIcon = pathConfig.sharedIcon+'/default.jpg';
|
msg.defaultIcon = pathConfig.sharedIcon+'/default.jpg';
|
||||||
|
msg.level = myGeneralLevel;
|
||||||
var msgHtml = TemplateEngine(messageTemplate, msg);
|
var msgHtml = TemplateEngine(messageTemplate, msg);
|
||||||
|
|
||||||
|
|
||||||
@@ -331,18 +332,18 @@ function refreshMailboxList(obj){
|
|||||||
|
|
||||||
function registerGlobal(basicInfo){
|
function registerGlobal(basicInfo){
|
||||||
|
|
||||||
myNation = {
|
window.myNation = {
|
||||||
'id':basicInfo.myNationID,
|
'id':basicInfo.myNationID,
|
||||||
'mailbox':basicInfo.myNationID+9000,
|
'mailbox':basicInfo.myNationID+9000,
|
||||||
'color':'#000000',
|
'color':'#000000',
|
||||||
'nation':'재야'
|
'nation':'재야'
|
||||||
};
|
};
|
||||||
lastMsg = {
|
window.lastMsg = {
|
||||||
id : basicInfo.lastContact
|
id : basicInfo.lastContact
|
||||||
};
|
};
|
||||||
myGeneralID = basicInfo.generalID;
|
window.myGeneralID = basicInfo.generalID;
|
||||||
isChief = basicInfo.isChief;
|
window.isChief = basicInfo.isChief;
|
||||||
myGeneralLevel = basicInfo.generalLevel;
|
window.myGeneralLevel = basicInfo.generalLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
function activateMessageForm(){
|
function activateMessageForm(){
|
||||||
|
|||||||
@@ -42,5 +42,5 @@
|
|||||||
<div class="msg_content"><%e(text)%></div>
|
<div class="msg_content"><%e(text)%></div>
|
||||||
<%if(this.option && this.option.action) {%>
|
<%if(this.option && this.option.action) {%>
|
||||||
<div class="msg_prompt">
|
<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>
|
</div><%} %></div></div>
|
||||||
Reference in New Issue
Block a user