[Rt-commit] rt branch, 4.6/pjax, updated. rt-4.4.1-16-ge667a2d

Shawn Moore shawn at bestpractical.com
Thu Feb 9 16:29:34 EST 2017


The branch, 4.6/pjax has been updated
       via  e667a2de82a653b832aff11f66e8cbce1f44f39b (commit)
      from  6823720385a9d6ef6ba9ccad045acb0eefdf7cfe (commit)

Summary of changes:
 share/html/Ticket/Elements/ShowUpdateStatus | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit e667a2de82a653b832aff11f66e8cbce1f44f39b
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Thu Feb 9 21:26:52 2017 +0000

    Skip PJAX for "mark all messages as seen"
    
    There seems to be a bug in jquery-pjax where if RT redirects you to back
    to the same URL with an #anchor, pjax ignores it, because the hash is
    taken from the request URL, not the response's Location: URL.
    
    Fixes: T#181100

diff --git a/share/html/Ticket/Elements/ShowUpdateStatus b/share/html/Ticket/Elements/ShowUpdateStatus
index db6e02e..b6a248f 100644
--- a/share/html/Ticket/Elements/ShowUpdateStatus
+++ b/share/html/Ticket/Elements/ShowUpdateStatus
@@ -51,7 +51,7 @@
 <&|/l, 
  RT->Config->Get('WebPath') ."/$DisplayPath/Display.html?id=". $Ticket->id. "#txn-".$txn->id,
  RT->Config->Get('WebPath') ."/$DisplayPath/Display.html?id=". $Ticket->id ."&MarkAsSeen=1&Anchor=txn-" . $txn->id
- &>You can <a href="[_1]">jump to the first unread message</a> or <a href="[_2]">jump to the first unread message and mark all messages as seen</a>.</&>
+ &>You can <a href="[_1]">jump to the first unread message</a> or <a class="skip-pjax" href="[_2]">jump to the first unread message and mark all messages as seen</a>.</&>
 </&>
 </div>
 <%ARGS>

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


More information about the rt-commit mailing list