From ebd0a7248230291605b10ffc3abb77c7af8393d8 Mon Sep 17 00:00:00 2001 From: sunnavy Date: Wed, 17 Jan 2024 08:46:46 -0500 Subject: [PATCH] Disable hx requests for inline edit toggle buttons These buttons show inline edit forms and don't interact with servers. Htmx doesn't boost cancel buttons as the href is "#", so no need to explicitly disable them. --- share/html/Elements/ShowCustomFieldCustomGroupings | 2 +- share/html/Ticket/Elements/ShowSummary | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/html/Elements/ShowCustomFieldCustomGroupings b/share/html/Elements/ShowCustomFieldCustomGroupings index 7276b18f288..3ea35c08803 100644 --- a/share/html/Elements/ShowCustomFieldCustomGroupings +++ b/share/html/Elements/ShowCustomFieldCustomGroupings @@ -62,7 +62,7 @@ for my $group ( @Groupings ) { my $modify_url = $title_href ? "$title_href?id=".$Object->id.($group?";Grouping=".$m->interp->apply_escapes($group,'u')."#".CSSClass("$css_class-$group") : "#".$css_class) : undef; my $modify_inline - = '' . qq{} . '' diff --git a/share/html/Ticket/Elements/ShowSummary b/share/html/Ticket/Elements/ShowSummary index 45ca5445ebe..e98d672cec9 100644 --- a/share/html/Ticket/Elements/ShowSummary +++ b/share/html/Ticket/Elements/ShowSummary @@ -52,7 +52,7 @@ <%PERL> my $modify_url = RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id; my $modify_inline - = '' + = '' . qq{} . '' . '