aboutsummaryrefslogtreecommitdiffstats
path: root/mod/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-17 02:11:20 -0700
committerfriendica <info@friendica.com>2012-07-17 02:11:20 -0700
commit91e4c2fce1d3004dcdec589035084c4e8ee9a1b4 (patch)
treeaff6aed26f91a4ce5978fe8afb211df29f431f76 /mod/network.php
parente03da2beba27afa7abb748ad5134215cf6b582a7 (diff)
downloadvolse-hubzilla-91e4c2fce1d3004dcdec589035084c4e8ee9a1b4.tar.gz
volse-hubzilla-91e4c2fce1d3004dcdec589035084c4e8ee9a1b4.tar.bz2
volse-hubzilla-91e4c2fce1d3004dcdec589035084c4e8ee9a1b4.zip
pass all possible network search params to javascript - we will be processing them on the client and building the proper query string there.
Diffstat (limited to 'mod/network.php')
-rw-r--r--mod/network.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/mod/network.php b/mod/network.php
index 11d951ef9..5ff883d49 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -514,7 +514,33 @@ function network_content(&$a, $update = 0) {
. ((x($_GET,'cmax')) ? '&cmax=' . $_GET['cmax'] : '')
. ((x($_GET,'file')) ? '&file=' . $_GET['file'] : '')
- . "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+ . "'; var profile_page = " . $a->pager['page'] . ";";
+
+
+ $o .= "var network_gid = " . (($gid) ? $gid : 0) . ";\r\n"
+ . "var network_cid = " . (($_GET['cid']) ? $_GET['cid'] : 0) . ";\r\n"
+ . "var network_cmin = " . (($_GET['cmin']) ? $_GET['cmin'] : 0) . ";\r\n"
+ . "var network_cmax = " . (($_GET['cmax']) ? $_GET['cmax'] : 99) . ";\r\n"
+ . "var network_star = " . (($_GET['star']) ? $_GET['star'] : 0) . ";\r\n"
+ . "var network_liked = " . (($_GET['liked']) ? $_GET['liked'] : 0) . ";\r\n"
+ . "var network_conv = " . (($_GET['conv']) ? $_GET['conv'] : 0) . ";\r\n"
+ . "var network_spam = " . (($_GET['spam']) ? $_GET['spam'] : 0) . ";\r\n"
+ . "var network_new = " . (($nouveau) ? $nouveau : 0) . ";\r\n"
+
+
+ . 'var network_search = "' . $_GET['search'] . '"' . ";\r\n"
+ . 'var network_order = "' . $_GET['order'] . '"' . ";\r\n"
+ . 'var network_nets = "' . $_GET['nets'] . '"' . ";\r\n"
+ . 'var network_file = "' . $_GET['file'] . '"' . ";\r\n"
+ . 'var network_date_end = "' . $datequery . '"' . ";\r\n"
+ . 'var network_date_start = "' . $datequery2 . '"' . ";\r\n"
+ ;
+
+ $o .= "</script>\r\n";
+
+
+
+
}
$sql_extra3 = '';