diff options
author | friendica <info@friendica.com> | 2014-09-10 16:09:01 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-10 16:09:01 -0700 |
commit | 08638f3ec88e86def618ff89bdedb9ae9696d218 (patch) | |
tree | b17fcb8222f44c7a901dd961d0d9b6746c09362e /view/js/main.js | |
parent | eae146d85d6479cae26129577870963faa2802f6 (diff) | |
download | volse-hubzilla-08638f3ec88e86def618ff89bdedb9ae9696d218.tar.gz volse-hubzilla-08638f3ec88e86def618ff89bdedb9ae9696d218.tar.bz2 volse-hubzilla-08638f3ec88e86def618ff89bdedb9ae9696d218.zip |
Revert "Merge pull request #583 from git-marijus/master"
autoload broken - even after clearing cache and retrying.
This reverts commit 13e7a8f123b283a096af302b0366255355ba8439, reversing
changes made to 4712b78e520ca10b34e3e9b99c2752b10d811b42.
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/view/js/main.js b/view/js/main.js index ae90bb272..8c4fcdc13 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -700,30 +700,10 @@ function updateConvItems(mode,data) { updatePageItems(update_mode,data); $("#page-spinner").spin(false); in_progress = false; - justifyPhotos(); }); } - function justifyPhotos() { - if($('#photo-album-contents').length > 0) { - loadingPage = true; - $('#photo-album-contents').justifiedGallery({ - lastRow : 'nojustify', - captions: true, - margins: 3, - rowHeight : 150, - sizeRangeSuffixes : { - 'lt100': '', - 'lt240': '', - 'lt320': '', - 'lt500': '', - 'lt640': '', - 'lt1024': '' - } - }).on('jg.complete', function(e){ loadingPage = false; }); - } - } function notify_popup_loader(notifyType) { @@ -1070,6 +1050,7 @@ function previewTheme(elm) { } $(document).ready(function() { + jQuery.timeago.settings.strings = { prefixAgo : aStr['t01'], prefixFromNow : aStr['t02'], @@ -1093,8 +1074,6 @@ $(document).ready(function() { $(".autotime").timeago(); - justifyPhotos(); - }); function zFormError(elm,x) { @@ -1110,7 +1089,7 @@ $(document).ready(function() { -$(window).scroll(function () { +$(window).scroll(function () { if(typeof buildCmd == 'function') { // This is a content page with items and/or conversations $('#more').hide(); @@ -1120,8 +1099,8 @@ $(window).scroll(function () { $('#more').css("top","400"); $('#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(); @@ -1141,7 +1120,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(); |