scrolling directory
This commit is contained in:
parent
1f415d9830
commit
dc98e6c0e9
@ -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'));
|
||||
|
||||
}
|
||||
|
||||
|
@ -677,7 +677,7 @@ function updateConvItems(mode,data) {
|
||||
bParam_page = 1;
|
||||
}
|
||||
|
||||
update_url = baseurl + '/directory/?f=&page=' + bParam_page;
|
||||
update_url = baseurl + '/directory/?f=&aj=1&page=' + bParam_page;
|
||||
|
||||
$("#page-spinner").spin('small');
|
||||
update_mode = 'append';
|
||||
|
6
view/tpl/directajax.tpl
Normal file
6
view/tpl/directajax.tpl
Normal file
@ -0,0 +1,6 @@
|
||||
{{foreach $entries as $entry}}
|
||||
|
||||
{{include file="direntry.tpl"}}
|
||||
|
||||
{{/foreach}}
|
||||
|
@ -11,6 +11,8 @@
|
||||
{{/foreach}}
|
||||
|
||||
|
||||
|
||||
<div id="page-end"></div>
|
||||
<div class="directory-end"></div>
|
||||
<script>$(document).ready(function() { loadingPage = false;});</script>
|
||||
<div id="page-spinner"></div>
|
||||
|
||||
|
Reference in New Issue
Block a user