[Rt-commit] rt branch, 4.0/fix-ie-cache-for-bookmark, created. rt-4.0.10-86-g5d9c102

? sunnavy sunnavy at bestpractical.com
Wed Mar 13 12:34:24 EDT 2013


The branch, 4.0/fix-ie-cache-for-bookmark has been created
        at  5d9c10230e834f78a47ebe830d523d10491ff1c1 (commit)

- Log -----------------------------------------------------------------
commit 5d9c10230e834f78a47ebe830d523d10491ff1c1
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Mar 14 00:27:02 2013 +0800

    add Time::HiRes::time() as a param in bookmark ajax load to avoid ie caching the response

diff --git a/share/html/Ticket/Elements/Bookmark b/share/html/Ticket/Elements/Bookmark
index b74da79..7eb6dd7 100644
--- a/share/html/Ticket/Elements/Bookmark
+++ b/share/html/Ticket/Elements/Bookmark
@@ -82,7 +82,7 @@ $id
 $Toggle => 0
 </%ARGS>
 <span class="toggle-bookmark-<% $id %>">
-% my $url = RT->Config->Get('WebPath') ."/Helpers/Toggle/TicketBookmark?id=". $id;
+% my $url = RT->Config->Get('WebPath') ."/Helpers/Toggle/TicketBookmark?id=". $id . ';time=' . Time::HiRes::time();
 <a align="right" href="<% $url %>" onclick="jQuery('.toggle-bookmark-'+<% $id |n,j%>).load(<% $url |n,j %>); return false;" >
 % if ( $bookmarked ) {
 <img src="<% RT->Config->Get('WebPath') %>/NoAuth/images/star.gif" alt="<% loc('Remove Bookmark') %>" style="border-style: none" />

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


More information about the Rt-commit mailing list