aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 22:06:42 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 22:06:42 -0700
commite157e3bec8722c04ed8dc2d215cd2efd0ce3ce79 (patch)
tree0fbe85a21d2a665c510a96d696fc551f46990fe0 /include
parent4450170790de3999dc9c6f8876074e76edee8241 (diff)
downloadvolse-hubzilla-e157e3bec8722c04ed8dc2d215cd2efd0ce3ce79.tar.gz
volse-hubzilla-e157e3bec8722c04ed8dc2d215cd2efd0ce3ce79.tar.bz2
volse-hubzilla-e157e3bec8722c04ed8dc2d215cd2efd0ce3ce79.zip
cards: make page load after comment post
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 0d2dd2224..2d5ccb5b1 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -464,6 +464,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$profile_owner = 0;
$page_writeable = false;
$live_update_div = '';
+ $jsreload = '';
$preview = (($page_mode === 'preview') ? true : false);
$previewing = (($preview) ? ' preview ' : '');
@@ -523,6 +524,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$live_update_div = '<div id="live-cards"></div>' . "\r\n"
. "<script> var profile_uid = " . App::$profile['profile_uid']
. "; var netargs = '?f='; var profile_page = " . App::$pager['page'] . "; </script>\r\n";
+ $jsreload = $_SESSION['return_url'];
}
@@ -817,6 +819,10 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
$item_object->set_template('conv_list.tpl');
$item_object->set_display_mode('list');
}
+ if($page_mode === 'cards') {
+ $item_object->set_reload($jsreload);
+ }
+
}
}