- comment edit form looks ok now with the new comment layout

- removed unused css / simplify it
- simplified jquery drop boxes ...

git-svn-id: http://piwigo.org/svn/trunk@13865 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2012-04-02 20:49:46 +00:00
parent 9c6f27c0e1
commit 9c06bb5564
8 changed files with 64 additions and 117 deletions

View File

@@ -206,8 +206,6 @@ foreach ($actions as $loop_action)
if (isset($action))
{
check_pwg_token();
$comment_author_id = get_comment_author_id($comment_id);
if (can_manage_comment($action, $comment_author_id))
@@ -216,12 +214,14 @@ if (isset($action))
if ('delete' == $action)
{
check_pwg_token();
delete_user_comment($comment_id);
$perform_redirect = true;
}
if ('validate' == $action)
{
check_pwg_token();
validate_user_comment($comment_id);
$perform_redirect = true;
}
@@ -230,6 +230,7 @@ if (isset($action))
{
if (!empty($_POST['content']))
{
check_pwg_token();
update_user_comment(
array(
'comment_id' => $_GET['edit'],
@@ -502,8 +503,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id
$tpl_comment['U_EDIT'] = add_url_params(
$url,
array(
'edit' => $comment['comment_id'],
'pwg_token' => get_pwg_token(),
'edit' => $comment['comment_id']
)
);
@@ -514,6 +514,7 @@ SELECT c.id, name, permalink, uppercats, com.id as comment_id
$tpl_comment['KEY'] = $key;
$tpl_comment['IMAGE_ID'] = $comment['image_id'];
$tpl_comment['CONTENT'] = $comment['content'];
$tpl_comment['PWG_TOKEN'] = get_pwg_token();
}
}