1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

comment approval refinements

This commit is contained in:
CaMer0n 2012-06-17 04:06:23 +00:00
parent d68a703943
commit ff6214e4e8
2 changed files with 6 additions and 1 deletions

View File

@ -184,8 +184,11 @@ class comment_shortcodes extends e_shortcode
// TODO put into a <ul> drop-down format.
$text = "<a href='#' data-target='".e_BASE."comment.php' id='e-comment-delete-".$this->var['comment_id']."' class='e-comment-delete'>Delete</a> ";
$text .= "<a href='#' data-target='".e_BASE."comment.php' id='e-comment-approve-".$this->var['comment_id']."' class='e-comment-approve'>Approve</a> ";
if($this->var['comment_blocked'] == 2) // pending approval.
{
$text .= "<a href='#' data-target='".e_BASE."comment.php' id='e-comment-approve-".$this->var['comment_id']."' class='e-comment-approve'>Approve</a> ";
}
return $text;
$url = e_PAGE."?".e_QUERY;

View File

@ -179,6 +179,8 @@ $(document).ready(function()
$(id).text(a.html)
.fadeIn('slow')
.addClass('e-comment-edit-success'); //TODO another class?
$('#e-comment-approve-'+sp[3]).hide('slow');
}
else
{