diff options
author | sunnavy <sunnavy@bestpractical.com> | 2022-08-18 23:33:47 +0300 |
---|---|---|
committer | sunnavy <sunnavy@bestpractical.com> | 2022-08-18 23:33:47 +0300 |
commit | 43a1e926e848b7c20027f55d54e4ee913ba28376 (patch) | |
tree | 2c1545d90035d323af73df3c734d4c014e14168e | |
parent | 36f1192af50827663fcbf73a0af3fbcd452f710c (diff) | |
parent | 1f0361dbfda21827e9deb338cfd728937754a953 (diff) |
Merge branch '5.0/jump-to-unread-on-scroll' into 5.0-trunk
-rw-r--r-- | share/html/Ticket/Elements/ScrollShowHistory | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/html/Ticket/Elements/ScrollShowHistory b/share/html/Ticket/Elements/ScrollShowHistory index 95ece700c4..5d900e1c52 100644 --- a/share/html/Ticket/Elements/ScrollShowHistory +++ b/share/html/Ticket/Elements/ScrollShowHistory @@ -214,5 +214,17 @@ jQuery(function(){ }); loadHistoryPage(); + + // Catch clicks on unread messages buttons and load any messages not loaded "on scroll" + jQuery('.new-messages-buttons > a').on('click', function (e) { + var link = jQuery(this); + if ( link[0].hash ) { + hash = link[0].hash; + lastTransactionId = null; + loadHistoryPage(); + } + return true; + }); + }); </script> |