[Rt-commit] rtir branch, 4.0/fix-history-scroll, created. 4.0.0rc1-10-g9d52646

Dustin Graves dustin at bestpractical.com
Fri Jul 1 17:34:34 EDT 2016


The branch, 4.0/fix-history-scroll has been created
        at  9d526460126206bc9d863570df2fc7e79211a490 (commit)

- Log -----------------------------------------------------------------
commit 9d526460126206bc9d863570df2fc7e79211a490
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Fri Jul 1 21:01:32 2016 +0000

    add support for 'as you scroll' ticket history option
    
    previously there was no logic in place and it would fall back to
    'immediately' option

diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index fdf26f4..f3f8d83 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -140,7 +140,11 @@
 </&></div>
 
 % my $ShowHistory = RT->Config->Get("ShowHistory", $session{'CurrentUser'});
-% if ($ShowHistory eq "delay") {
+% if ($ShowHistory eq "scroll") {
+    <& /Ticket/Elements/ScrollShowHistory,
+        Ticket => $Ticket
+    &>
+% } elsif ($ShowHistory eq "delay") {
     <& /Ticket/Elements/DelayShowHistory,
         Ticket => $Ticket,
         ShowHeaders => $ARGS{'ShowHeaders'},
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 461436f..9c823fd 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -143,7 +143,11 @@
 </&></div>
 
 % my $ShowHistory = RT->Config->Get("ShowHistory", $session{'CurrentUser'});
-% if ($ShowHistory eq "delay") {
+% if ($ShowHistory eq "scroll") {
+    <& /Ticket/Elements/ScrollShowHistory,
+        Ticket => $TicketObj
+    &>
+% } elsif ($ShowHistory eq "delay") {
     <& /Ticket/Elements/DelayShowHistory,
         Ticket => $TicketObj,
         ShowHeaders => $ARGS{'ShowHeaders'},

-----------------------------------------------------------------------


More information about the rt-commit mailing list