mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #1285 status displayed as 'undefined' in comment management popup
This commit is contained in:
parent
fab11bfd39
commit
b36675aeba
2 changed files with 7 additions and 4 deletions
|
|
@ -2,3 +2,8 @@
|
|||
<div class="x_page-header">
|
||||
<h1>{$lang->comment} {$lang->cmd_management}</h1>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var secret_name_list = {$lang->secret_name_list->getArrayCopy()|json};
|
||||
var published_name_list = {$lang->published_name_list->getArrayCopy()|json};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ function getCommentList()
|
|||
function completeGetCommentList(ret_obj, response_tags)
|
||||
{
|
||||
var htmlListBuffer = '';
|
||||
var statusNameList = {"N":"Public", "Y":"Secret"};
|
||||
var publishedStatusList = {0:'Unpublished', 1:'Published'};
|
||||
if(ret_obj['comment_list'] == null)
|
||||
{
|
||||
htmlListBuffer = '<tr>' +
|
||||
|
|
@ -57,8 +55,8 @@ function completeGetCommentList(ret_obj, response_tags)
|
|||
htmlListBuffer += '<tr>' +
|
||||
'<td class="title">'+ objComment.content +'</td>' +
|
||||
'<td class="nowr">'+ objComment.nick_name +'</td>' +
|
||||
'<td class="nowr">'+ statusNameList[objComment.is_secret] +'</td>' +
|
||||
'<td>'+ publishedStatusList[objComment.status] + '<input type="hidden" name="cart[]" value="'+objComment.comment_srl+'" />' + '</td>' +
|
||||
'<td class="nowr">'+ secret_name_list[objComment.is_secret] +'</td>' +
|
||||
'<td>'+ published_name_list[String(objComment.status)] + '<input type="hidden" name="cart[]" value="'+objComment.comment_srl+'" />' + '</td>' +
|
||||
'</tr>';
|
||||
}
|
||||
jQuery('#selectedCommentCount').html(comment_list.length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue