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'] ); goaway($a->get_baseurl() . "/" . $_POST['return'] );
killme();
// NOTREACHED // NOTREACHED
} }

View file

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

View file

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

View file

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