aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-08-05 21:48:13 -0700
committerfriendica <info@friendica.com>2014-08-05 21:48:13 -0700
commitdc98e6c0e9403066c95cebe1d7eb919281a9e1cd (patch)
tree6b97baf78fc01a3beff0dfbf1f39f0a084881856 /mod/directory.php
parent1f415d983081170ec707e0f72d99efc12e7cde4a (diff)
downloadvolse-hubzilla-dc98e6c0e9403066c95cebe1d7eb919281a9e1cd.tar.gz
volse-hubzilla-dc98e6c0e9403066c95cebe1d7eb919281a9e1cd.tar.bz2
volse-hubzilla-dc98e6c0e9403066c95cebe1d7eb919281a9e1cd.zip
scrolling directory
Diffstat (limited to 'mod/directory.php')
-rw-r--r--mod/directory.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/mod/directory.php b/mod/directory.php
index e80e9661d..d71a5584a 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -199,12 +199,15 @@ function directory_content(&$a) {
$a->data['directory_keywords'] = $j['keywords'];
}
-// logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA);
-
-
- if($dynamic) {
+ logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DEBUG);
+ if($_REQUEST['aj']) {
+ $o = replace_macros(get_markup_template('directajax.tpl'),array(
+ '$entries' => $entries
+ ));
+ echo $o;
+ killme();
}
else {
@@ -219,7 +222,7 @@ function directory_content(&$a) {
'$submit' => t('Find')
));
- $o .= alt_pager($a,$j['records'], t('next page'), t('previous page'));
+// $o .= alt_pager($a,$j['records'], t('next page'), t('previous page'));
}