mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
comment approval refinements
This commit is contained in:
@@ -184,8 +184,11 @@ class comment_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
// TODO put into a <ul> drop-down format.
|
// 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-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;
|
return $text;
|
||||||
|
|
||||||
$url = e_PAGE."?".e_QUERY;
|
$url = e_PAGE."?".e_QUERY;
|
||||||
|
@@ -179,6 +179,8 @@ $(document).ready(function()
|
|||||||
$(id).text(a.html)
|
$(id).text(a.html)
|
||||||
.fadeIn('slow')
|
.fadeIn('slow')
|
||||||
.addClass('e-comment-edit-success'); //TODO another class?
|
.addClass('e-comment-edit-success'); //TODO another class?
|
||||||
|
|
||||||
|
$('#e-comment-approve-'+sp[3]).hide('slow');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user