aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-16 21:17:49 -0800
committerFriendika <info@friendika.com>2011-02-16 21:17:49 -0800
commit4bff52990e5f340cf879abf7c1cdaea7ee928d74 (patch)
tree6b97ae3fe0430f3c94565692cc97da81f0065de8 /mod/item.php
parentc397a2f89bf3c2c609852f5bfc618c1d0cb0b709 (diff)
downloadvolse-hubzilla-4bff52990e5f340cf879abf7c1cdaea7ee928d74.tar.gz
volse-hubzilla-4bff52990e5f340cf879abf7c1cdaea7ee928d74.tar.bz2
volse-hubzilla-4bff52990e5f340cf879abf7c1cdaea7ee928d74.zip
ajax reload fixes
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index cbdd11eb9..8c6b181c0 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -496,10 +496,17 @@ function item_post(&$a) {
}
}
- if((x($_POST,'return')) && strlen($_POST['return']))
+ logger('post_complete');
+ if((x($_POST,'return')) && strlen($_POST['return'])) {
+ logger('return: ' . $_POST['return']);
goaway($a->get_baseurl() . "/" . $_POST['return'] );
-
+ }
$json = array('success' => 1);
+ if(x($_POST,'jsreload') && strlen($_POST['jsreload']))
+ $json['reload'] = $a->get_baseurl() . '/' . $_POST['jsreload'];
+
+ logger('post_json: ' . print_r($json,true), LOGGER_DEBUG);
+
echo json_encode($json);
killme();
// NOTREACHED