- 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
+3 -4
View File
@@ -332,9 +332,8 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
rate_picture($page['image_id'], $_POST['rate']);
redirect($url_self);
}
case 'edit_comment' :
case 'edit_comment':
{
check_pwg_token();
include_once(PHPWG_ROOT_PATH.'include/functions_comment.inc.php');
check_input_parameter('comment_to_edit', $_GET, false, PATTERN_ID);
$author_id = get_comment_author_id($_GET['comment_to_edit']);
@@ -343,6 +342,7 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
{
if (!empty($_POST['content']))
{
check_pwg_token();
$comment_action = update_user_comment(
array(
'comment_id' => $_GET['comment_to_edit'],
@@ -374,14 +374,13 @@ UPDATE '.USER_CACHE_CATEGORIES_TABLE.'
redirect($url_self);
}
unset($_POST['content']);
break;
}
else
{
$edit_comment = $_GET['comment_to_edit'];
break;
}
}
break;
}
case 'delete_comment' :
{