mirror of
https://github.com/friendica/friendica
synced 2024-11-10 04:22:54 +00:00
preliminary ajax comment setups
This commit is contained in:
parent
4081ebe6c5
commit
3d9845f4a4
4 changed files with 6 additions and 3 deletions
|
@ -490,7 +490,9 @@ function item_post(&$a) {
|
|||
}
|
||||
}
|
||||
|
||||
goaway($a->get_baseurl() . "/" . $_POST['return'] );
|
||||
if((x($_POST,'return')) && strlen($_POST['return']))
|
||||
goaway($a->get_baseurl() . "/" . $_POST['return'] );
|
||||
killme();
|
||||
// NOTREACHED
|
||||
}
|
||||
|
||||
|
|
|
@ -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'],
|
||||
|
|
|
@ -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'],
|
||||
|
|
|
@ -18,4 +18,5 @@
|
|||
|
||||
<div class="comment-edit-end"></div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue