preliminary ajax comment setups

This commit is contained in:
Friendika 2011-02-12 03:14:59 -08:00
parent 4081ebe6c5
commit 3d9845f4a4
4 changed files with 6 additions and 3 deletions

View File

@ -490,7 +490,9 @@ function item_post(&$a) {
}
}
if((x($_POST,'return')) && strlen($_POST['return']))
goaway($a->get_baseurl() . "/" . $_POST['return'] );
killme();
// NOTREACHED
}

View File

@ -340,7 +340,7 @@ function network_content(&$a, $update = 0) {
if($item['last-child']) {
$comment = replace_macros($cmnt_tpl,array(
'$return_path' => $_SESSION['return_url'],
'$return_path' => '', // $_SESSION['return_url'],
'$type' => 'net-comment',
'$id' => $item['item_id'],
'$parent' => $item['parent'],

View File

@ -293,7 +293,7 @@ function profile_content(&$a, $update = 0) {
}
if($item['last-child']) {
$comment = replace_macros($cmnt_tpl,array(
'$return_path' => $_SESSION['return_url'],
'$return_path' => '', // $_SESSION['return_url'],
'$type' => 'wall-comment',
'$id' => $item['item_id'],
'$parent' => $item['parent'],

View File

@ -18,4 +18,5 @@
<div class="comment-edit-end"></div>
</form>
</div>