[Rt-commit] rt branch 5.0/transaction-display-missing-script created. rt-5.0.2-258-g6555e8a729

BPS Git Server git at git.bestpractical.com
Tue May 31 21:41:02 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/transaction-display-missing-script has been created
        at  6555e8a7292f2cfbd72952d14abb0ffb77f82561 (commit)

- Log -----------------------------------------------------------------
commit 6555e8a7292f2cfbd72952d14abb0ffb77f82561
Author: Brian Conry <bconry at bestpractical.com>
Date:   Tue May 31 16:22:11 2022 -0500

    add script to /Transaction/Display.html for CF diffs
    
    Commit 290067f80a changed how updates to CF content were displayed by
    creating a diff that is collapsed by default and can be toggled.
    
    /Elements/ShowTransaction creates this diff and adds it to the page as
    a hidden element, where the toggle must be done to see it.  The script
    to add this logic to the button was added to multiple pages, but
    /Transaction/Display.html was not one of them.
    
    This change adds the script to /Transaction/Display.html

diff --git a/share/html/Transaction/Display.html b/share/html/Transaction/Display.html
index f1f26cb581..85522457a2 100644
--- a/share/html/Transaction/Display.html
+++ b/share/html/Transaction/Display.html
@@ -65,7 +65,13 @@
 
 <& /Widgets/TitleBoxEnd &>
 </div>
-
+<script type="text/javascript">
+jQuery(function() {
+    jQuery('.toggle-txn-details').click(function () {
+        return toggleTransactionDetails.apply(this);
+    });
+});
+</script>
 <%ARGS>
 $id => undef
 </%ARGS>

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list