[Rt-commit] rt branch, 4.4/scroll-txn-whole-list, repushed

? sunnavy sunnavy at bestpractical.com
Tue Apr 17 03:32:51 EDT 2018


The branch 4.4/scroll-txn-whole-list was deleted and repushed:
       was bd54d85b847c71436580137054137e9759750eb6
       now c25cc4c20828ab0129dd8f9bbf7f4b3070ec9787

1: bd54d85b8 ! 1: c25cc4c20 In case all the txns on the page are skipped for scroll type of ShowHistory
    @@ -18,7 +18,7 @@
     +# inform AJAX request that it's not done yet.
     +
     +if ( $i == 1 and RT->Config->Get( "ShowHistory", $session{'CurrentUser'} ) eq 'scroll' and my $txn = $Transactions->Last ) {
    -+    $m->out( q{<div class="hidden transaction" data-transaction-id="} . $txn->id . qq{"></div>\n} );
    ++    $m->out( q{<div class="hidden end-of-history-list transaction" data-transaction-id="} . $txn->id . qq{"></div>\n} );
     +}
     +
      </%perl>
    @@ -31,7 +31,7 @@
                      if(html && transactions.length) {
                          lastTransactionId = transactions.last().data('transactionId');
                          jQuery(".history-container").append(html);
    -+                    if ( transactions.filter(':not(.hidden)').length == 0 ) {
    ++                    if ( transactions.filter(':not(.hidden.end-of-history-list)').length == 0 ) {
     +                        // if none is visible, automatically load more
     +                        isLoading = false;
     +                        loadHistoryPage();



More information about the rt-commit mailing list