diff options
author | friendica <info@friendica.com> | 2014-03-25 12:47:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-25 12:47:46 -0700 |
commit | f14596b1ebeecf2c75939374136c830e44dbd923 (patch) | |
tree | cef612ce9d8e9ac7d0676e4c01be48aea5d9e4f4 /view/js/main.js | |
parent | dc091800c3a138810b2c14127dfa2fe4fab3616b (diff) | |
parent | fbb12ca86acf40bf61f2ad8f69aee78db8df8dcb (diff) | |
download | volse-hubzilla-f14596b1ebeecf2c75939374136c830e44dbd923.tar.gz volse-hubzilla-f14596b1ebeecf2c75939374136c830e44dbd923.tar.bz2 volse-hubzilla-f14596b1ebeecf2c75939374136c830e44dbd923.zip |
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/view/js/main.js b/view/js/main.js index 5f88ea9ca..38cde749c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -728,27 +728,10 @@ function updateConvItems(mode,data) { return cursor; } - var lockvisible = false; - function lockview(event,id) { - event = event || window.event; - cursor = getPosition(event); - if(lockvisible) { - lockviewhide(); - } - else { - lockvisible = true; - $.get('lockview/' + id, function(data) { - $('#panel').html(data); - $('#panel').css({ 'left': cursor.x + 5 , 'top': cursor.y + 5}); - $('#panel').show(); - }); - } - } - - function lockviewhide() { - lockvisible = false; - $('#panel').hide(); + $.get('lockview/' + id, function(data) { + $('#panel-' + id).html(data); + }); } function post_comment(id) { @@ -1022,7 +1005,7 @@ $(window).scroll(function () { $('#more').show(); } - if($(window).scrollTop() + $(window).height() == $(document).height()) { + if($(window).scrollTop() + $(window).height() > $(document).height() - 100) { if((pageHasMoreContent) && (! loadingPage)) { $('#more').hide(); $('#no-more').hide(); @@ -1032,7 +1015,6 @@ $(window).scroll(function () { loadingPage = true; liveUpdate(); } - } } }); |