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:
parent
d68a703943
commit
ff6214e4e8
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user