Skip to content

Commit

Permalink
Drop the uselese "Go" buttons for article topics select
Browse files Browse the repository at this point in the history
The page reloads once an article/topic is select.
  • Loading branch information
sunnavy committed Feb 12, 2025
1 parent 35f19fe commit 3a3f13f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions share/html/Articles/Elements/BeforeMessageBox
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,23 @@
% }
% if ( @$topics ) {
<&| /Elements/LabeledValue, Label => loc('Choose from Topics for [_1]', $QueueObj->Name) &>
<div class="input-group">
<select name="<% $name_prefix %>Articles-Include-Topic" onchange="htmx.trigger(this.form, 'submit')" class="form-select selectpicker">
<option value="" selected>-</option>
% for ( @$topics ) {
<option value="<% $_->{id} %>"><%'&nbsp;' x $_->{depth} . ($_->{name}|| loc('(no name)')) |n%>
</option>
% }
</select>
<button class="btn btn-primary" type="button" name="Go" value="Go"><&|/l&>Go</&></button>
</div>
</&>

% if ( $ARGS{$name_prefix .'Articles-Include-Topic'} ) {
<&| /Elements/LabeledValue, Label => loc('Select an Article from [_1]', $included_topic->Name) &>
<div class="input-group">
<select name="IncludeArticleId" onchange="htmx.trigger(this.form, 'submit')" class="form-select selectpicker">
<option value="" selected>-</option>
% while ( my $art = $topic_articles->Next ) {
<option value="<% $art->id %>"><%$art->Name||loc('(no name)')%>: <%$art->Summary%></option>
% }
</select>
<button class="btn btn-primary" type="button" name="Go" value="Go"><&|/l&>Go</&></button>
</div>
</&>
% } # End if Articles-Include-Topic
% } # End if @$topics
Expand Down

0 comments on commit 3a3f13f

Please sign in to comment.