mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 19:59:54 +09:00
Added comment validation system.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10272 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9307d94fc8
commit
13402bfc76
22 changed files with 417 additions and 19 deletions
|
|
@ -40,7 +40,7 @@ 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>' +
|
||||
|
|
@ -58,6 +58,7 @@ function completeGetCommentList(ret_obj, response_tags)
|
|||
'<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] +'</td>' +
|
||||
'</tr>' +
|
||||
'<input type="hidden" name="cart[]" value="'+objComment.comment_srl+'" />';
|
||||
}
|
||||
|
|
@ -66,6 +67,16 @@ function completeGetCommentList(ret_obj, response_tags)
|
|||
jQuery('#commentManageListTable>tbody').html(htmlListBuffer);
|
||||
}
|
||||
|
||||
function doChangePublishedStatus(new_status)
|
||||
{
|
||||
container_div = jQuery("#listManager");
|
||||
var act = container_div.find("input[name=act]");
|
||||
var will_publish = container_div.find("input[name=will_publish]");
|
||||
var action = "procCommentAdminChangePublishedStatusChecked";
|
||||
will_publish.val(new_status);
|
||||
act.val(action);
|
||||
}
|
||||
|
||||
function checkSearch(form)
|
||||
{
|
||||
if(form.search_target.value == '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue