]> git.mxchange.org Git - friendica.git/commitdiff
better fix for bug #107, last one was flawed
authorFriendika <info@friendika.com>
Fri, 22 Jul 2011 03:19:55 +0000 (20:19 -0700)
committerFriendika <info@friendika.com>
Fri, 22 Jul 2011 03:19:55 +0000 (20:19 -0700)
include/main.js
mod/community.php
mod/network.php
mod/profile.php

index 0e9c6ee75117c1c77d4507ce1fde7b8da807f28c..d17d923e42d97eb591107432131a2c79550ee861 100644 (file)
                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) {
index 73feaabc69b2373e28efa34000315907732677f9..cf43598b518bdf5a5cd5a64cc7ed878c1b36794b 100644 (file)
@@ -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'))
index f05bf3e3443050d9f860ab823bf00d206bb1f677..000c9e2fed5b16f97b0e8e655805b7f707a281b6 100644 (file)
@@ -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'] : '') 
index e9b144ffdd7b8538cdd318f0cf6bf6f96b909c05..f4b6bfaf1c231f9f403381e45a9690cbba5c2131 100644 (file)
@@ -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";
                }
        }