Skip to content

Commit

Permalink
sep effective on kinds fields inline fix (#4872)
Browse files Browse the repository at this point in the history
* use keydown attr on zip text fields, move ajax script to js file

* use data attr for select tag

* fix label required asterisk

---------

Co-authored-by: Ann Caballero <[email protected]>
  • Loading branch information
2 people authored and bbodine1 committed Dec 25, 2024
1 parent 007f0ec commit 1cbb3a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions app/views/insured/families/_effective_on_kind_fields.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<% if @qle.effective_on_kinds.count > 1 %>
<% if @bs4 %>
<div onkeydown="handleButtonKeyDown(event, 'qle_success_submit')">
<label class="weight-n required">
<div><%= l10n('please_select_effective_date') %></div>
<%= select_tag 'effective_on_kind', options_for_select(generate_options_for_effective_on_kinds(@qle, @qle_event_date)), include_blank: l10n("select"), class: "col-auto pr-4" %>
</label>
<div data-keydown-id='qle_success_submit'>
<label for="effective_on_kind" class="weight-n required"><%= l10n('please_select_effective_date') %></label>
<%= select_tag 'effective_on_kind', options_for_select(generate_options_for_effective_on_kinds(@qle, @qle_event_date)), include_blank: l10n("select"), class: "col-auto pr-4" %>
</div>
<% else %>
<div class="alert alert-danger" id='qle_effective_on_kind_alert' role="alert" style='display:none'><%= l10n(".please_select_effective_date") %></div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/insured/families/check_move_reason.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function init_moving_fields(event) {
}
})
<% end %>

$('#qle_zip_compare').on('click', function() {
function handleFailure() {
$('#qle_reason').hide();
Expand Down

0 comments on commit 1cbb3a3

Please sign in to comment.