a bit of cleanup on directory autoscroll
This commit is contained in:
parent
dc98e6c0e9
commit
74377bd4b4
@ -199,13 +199,18 @@ function directory_content(&$a) {
|
|||||||
$a->data['directory_keywords'] = $j['keywords'];
|
$a->data['directory_keywords'] = $j['keywords'];
|
||||||
}
|
}
|
||||||
|
|
||||||
logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DEBUG);
|
logger('mod_directory: entries: ' . print_r($entries,true), LOGGER_DATA);
|
||||||
|
|
||||||
|
|
||||||
if($_REQUEST['aj']) {
|
if($_REQUEST['aj']) {
|
||||||
$o = replace_macros(get_markup_template('directajax.tpl'),array(
|
if($entries) {
|
||||||
'$entries' => $entries
|
$o = replace_macros(get_markup_template('directajax.tpl'),array(
|
||||||
));
|
'$entries' => $entries
|
||||||
|
));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$o = '<div id="content-complete"></div>';
|
||||||
|
}
|
||||||
echo $o;
|
echo $o;
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
@ -408,6 +408,12 @@
|
|||||||
|
|
||||||
|
|
||||||
function updatePageItems(mode,data) {
|
function updatePageItems(mode,data) {
|
||||||
|
|
||||||
|
var e = data.getElementById('content-complete');
|
||||||
|
if(e) {
|
||||||
|
pageHasMoreContent = false;
|
||||||
|
}
|
||||||
|
|
||||||
if(mode === 'append') {
|
if(mode === 'append') {
|
||||||
$(data).each(function() {
|
$(data).each(function() {
|
||||||
$('#page-end').before($(this));
|
$('#page-end').before($(this));
|
||||||
|
Reference in New Issue
Block a user