better fix for bug #107, last one was flawed
This commit is contained in:
parent
f4b4f61f66
commit
77cea581b0
|
@ -149,7 +149,7 @@
|
|||
prev = 'live-' + src;
|
||||
|
||||
in_progress = true;
|
||||
var udargs = ((netargs.length) ? '/?f=' + netargs : '?f=');
|
||||
var udargs = ((netargs.length) ? '/' + netargs : '');
|
||||
var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
|
||||
|
||||
$.get(update_url,function(data) {
|
||||
|
|
|
@ -27,7 +27,7 @@ function community_content(&$a, $update = 0) {
|
|||
if(! $update) {
|
||||
$o .= '<script> $(document).ready(function() { $(\'#nav-community-link\').addClass(\'nav-selected\'); });</script>';
|
||||
$o .= '<div id="live-community"></div>' . "\r\n";
|
||||
$o .= "<script> var profile_uid = -1; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
|
||||
$o .= "<script> var profile_uid = -1; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
|
||||
}
|
||||
|
||||
if(x($a->data,'search'))
|
||||
|
|
|
@ -126,6 +126,7 @@ function network_content(&$a, $update = 0) {
|
|||
$o .= '<div id="live-network"></div>' . "\r\n";
|
||||
$o .= "<script> var profile_uid = " . $_SESSION['uid']
|
||||
. "; var netargs = '" . substr($a->cmd,8)
|
||||
. '?f=';
|
||||
. ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '')
|
||||
. ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '')
|
||||
. ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '')
|
||||
|
|
|
@ -160,7 +160,7 @@ function profile_content(&$a, $update = 0) {
|
|||
if($tab === 'posts') {
|
||||
$o .= '<div id="live-profile"></div>' . "\r\n";
|
||||
$o .= "<script> var profile_uid = " . $a->profile['profile_uid']
|
||||
. "; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
|
||||
. "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user