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:
friendica 2013-10-13 20:09:11 -07:00
parent bae7f4e078
commit 454aa6bff3
3 changed files with 6 additions and 1 deletions

View File

@ -1825,6 +1825,7 @@ function item_store_update($arr,$allow_exec = false) {
unset($arr['id']);
unset($arr['uid']);
if(array_key_exists('edit',$arr))
unset($arr['edit']);
$arr['mimetype'] = ((x($arr,'mimetype')) ? notags(trim($arr['mimetype'])) : 'text/bbcode');

View File

@ -137,7 +137,9 @@
e.tipTip({defaultPosition: pos, edgeOffset: 8});
});*/
var e = document.getElementById('content-complete');
if(typeof e !== 'undefined')
pageHasMoreContent = false;
/* setup onoff widgets */
$(".onoff input").each(function(){

View File

@ -166,6 +166,8 @@ function display_content(&$a, $update = 0, $load = false) {
);
}
$o .= '<div id="content-complete"></div>';
return $o;