[Rt-commit] rt branch, 4.0/delay-transaction-loading, updated. rt-4.0.2-26-g180e966
Thomas Sibley
trs at bestpractical.com
Tue Nov 29 11:45:06 EST 2011
The branch, 4.0/delay-transaction-loading has been updated
via 180e96694c626cf721e2fc01b33a7f8ca3919750 (commit)
from 38daa78ad7a92bdaf7f425503475952dd21a39b3 (commit)
Summary of changes:
share/html/Ticket/Elements/DelayShowHistory | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 180e96694c626cf721e2fc01b33a7f8ca3919750
Author: Thomas Sibley <trs at bestpractical.com>
Date: Tue Nov 29 11:42:56 2011 -0500
Preserve page anchors when using delay loaded transactions
This jumps to the desired anchor in the page after the ticket history is
fully loaded and displayed.
diff --git a/share/html/Ticket/Elements/DelayShowHistory b/share/html/Ticket/Elements/DelayShowHistory
index 00f70a1..a4200f8 100644
--- a/share/html/Ticket/Elements/DelayShowHistory
+++ b/share/html/Ticket/Elements/DelayShowHistory
@@ -53,7 +53,14 @@
<script type="text/javascript">
jQuery(function(){
jQuery('#delayed_ticket_history').load('<% $url |n %>', null, function() {
- jQuery(this).find('.titlebox-content').hide().slideDown();
+ jQuery(this).find('.titlebox-content').hide().slideDown(400, function(){
+ // Jump to any anchor specified after we load the txns into the page
+ var hash = window.location.hash;
+ if (hash) {
+ window.location.hash = ""; // trick the browser into a "change"
+ window.location.hash = hash;
+ }
+ });
});
});
</script>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list