turn off endless scroll if we have no more content to load - currently for mod_display, need to add to other content modules
This commit is contained in:
parent
bae7f4e078
commit
454aa6bff3
@ -1825,6 +1825,7 @@ function item_store_update($arr,$allow_exec = false) {
|
|||||||
|
|
||||||
unset($arr['id']);
|
unset($arr['id']);
|
||||||
unset($arr['uid']);
|
unset($arr['uid']);
|
||||||
|
|
||||||
if(array_key_exists('edit',$arr))
|
if(array_key_exists('edit',$arr))
|
||||||
unset($arr['edit']);
|
unset($arr['edit']);
|
||||||
$arr['mimetype'] = ((x($arr,'mimetype')) ? notags(trim($arr['mimetype'])) : 'text/bbcode');
|
$arr['mimetype'] = ((x($arr,'mimetype')) ? notags(trim($arr['mimetype'])) : 'text/bbcode');
|
||||||
|
@ -137,7 +137,9 @@
|
|||||||
e.tipTip({defaultPosition: pos, edgeOffset: 8});
|
e.tipTip({defaultPosition: pos, edgeOffset: 8});
|
||||||
});*/
|
});*/
|
||||||
|
|
||||||
|
var e = document.getElementById('content-complete');
|
||||||
|
if(typeof e !== 'undefined')
|
||||||
|
pageHasMoreContent = false;
|
||||||
|
|
||||||
/* setup onoff widgets */
|
/* setup onoff widgets */
|
||||||
$(".onoff input").each(function(){
|
$(".onoff input").each(function(){
|
||||||
|
@ -166,6 +166,8 @@ function display_content(&$a, $update = 0, $load = false) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$o .= '<div id="content-complete"></div>';
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user