From 01842a563de07e2d389c060bd196f0af21ed3549 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 27 Sep 2016 10:17:17 +0200 Subject: more changelog --- CHANGELOG | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 660b82897..e93d0377c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,9 @@ Hubzilla 1.14 (not released) + - Allow a site to over-ride the help table-of-contents files + - Autoscroll to target post/comment when in single-thread mode + - Indicator for own response verb activity + - Add server role documentation + - Pro: remove 'Additional Features' link for techlevel 0 - Upgrade fullcalendar library to version 3 - Whitelist button tag in htmlpurifier - Upgrade justifiedGallery library to version 3.6.3 @@ -27,8 +32,13 @@ Hubzilla 1.14 (not released) - Server roles (basic, standard and pro) Bugfixes - - do not show hidden channels in /randprof - - Various postgres fixes + - Missing categories in preview mode + - attach_store() sql issue + - Rename id share_container to distr_container - share_container seem to be blacklisted in various security browser plugins + - Add 'map' extension to files served natively by nginx without using the project controller + - Zot discovery wasn't returning in all cases (after discovering zot) + - Do not show hidden channels in /randprof + - Numerous postgres fixes - Illegal offset errors in include/conversation:status_editor() when no permissions array is passed - Patch foundation-6.2.3 to work with jquery-3.1 - Custom/expert permissions bug -- cgit v1.2.3 From fc18bea4bd125562038a5ca9c584729b54a44ab7 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 27 Sep 2016 14:00:04 +0200 Subject: catch js error if the notification mid is for e.g. a like and class .item_123def... does not exist --- view/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/js/main.js b/view/js/main.js index b5bbd57b5..c1536bce8 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -652,7 +652,8 @@ function updateConvItems(mode,data) { } // auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode - if(bParam_mid && mode == 'replace') { + if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') { + console.log($('.item_' + bParam_mid.substring(0,32))); $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top }, 'slow'); if($('.collapsed-comments').length) { var scrolltoid = $('.collapsed-comments').attr('id').substring(19); -- cgit v1.2.3 From c28ba24525f8210fc1bc5f24e938878936678801 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 27 Sep 2016 14:00:49 +0200 Subject: remove logging --- view/js/main.js | 1 - 1 file changed, 1 deletion(-) diff --git a/view/js/main.js b/view/js/main.js index c1536bce8..aadb4dff0 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -653,7 +653,6 @@ function updateConvItems(mode,data) { // auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') { - console.log($('.item_' + bParam_mid.substring(0,32))); $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top }, 'slow'); if($('.collapsed-comments').length) { var scrolltoid = $('.collapsed-comments').attr('id').substring(19); -- cgit v1.2.3 From 68cb4baeb3213a2e6b24b4ad4526f1aaf6e741ec Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 27 Sep 2016 14:11:55 +0200 Subject: do not scroll items behind the navbar --- view/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/js/main.js b/view/js/main.js index aadb4dff0..65a5311af 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -653,7 +653,7 @@ function updateConvItems(mode,data) { // auto-scroll to a particular comment in a thread (designated by mid) when in single-thread mode if($('.item_' + bParam_mid.substring(0,32)).length && mode == 'replace') { - $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top }, 'slow'); + $('html, body').animate({ scrollTop: $('.item_' + bParam_mid.substring(0,32)).offset().top - $('nav').outerHeight(true) }, 'slow'); if($('.collapsed-comments').length) { var scrolltoid = $('.collapsed-comments').attr('id').substring(19); $('#collapsed-comments-' + scrolltoid).slideDown(); -- cgit v1.2.3