-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* benefit application warning modal cucumber fix * broker employers cucumber fixes * fix disabled button check * general agency staff cucumber fixes * broker search cucumber fixes * job income cucumber fixes * ee waive cucumber fixes * update disabled button css selector * new plan year cucumber fixes * plan year filter cucumber fixes * fix admin paper cucumber step * extend oe cucumber fixes * rubocop fix * actual rubocop fix * update radio input checked selector
- Loading branch information
1 parent
5586c9c
commit 7d9f7d7
Showing
40 changed files
with
283 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 8 additions & 2 deletions
10
app/views/exchanges/hbx_profiles/edit_open_enrollment.js.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
$('.edit_open_enrollment_form').html("<%= escape_javascript(render "edit_open_enrollment") %>"); | ||
$('.edit_open_enrollment_form').html("<%= escape_javascript(render "edit_open_enrollment") %>").ready(initEditOE()); | ||
|
||
$('#reviewClose').click(function() { | ||
$('.edit_open_enrollment_form').hide(); | ||
event.preventDefault(); | ||
$('tr.child-row:visible').remove(); | ||
$('#extendable_applications_table').hide(); | ||
}); | ||
}); | ||
|
||
function initEditOE() { | ||
$(".uidatepicker").datepicker({minDate: "<%= @benefit_application.open_enrollment_date_bounds[:min] %>", maxDate: "<%= @benefit_application.open_enrollment_date_bounds[:max] %>", changeMonth: true, changeYear: true, yearRange: (new Date).getFullYear() + ":" + (new Date).getFullYear()+1 }); | ||
|
||
$(".uidatepicker").datepicker( "option", "dateFormat", "mm/dd/yy" ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...nts/benefit_sponsors/app/assets/javascripts/benefit_sponsors/broker_agency_staff_roles.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
$(document).on('click', '.select-broker-agency', function(e) { | ||
e.preventDefault() | ||
selectBrokereAgency(this); | ||
}) | ||
|
||
$(document).on('click', '.ba-search-btn', function(e) { | ||
e.preventDefault() | ||
brokerSearch(); | ||
return false | ||
}) | ||
|
||
function brokerSearch() { | ||
var broker_agency_search = document.getElementById('staff_agency_search').value | ||
var broker_registration_page = document.getElementById('staff_is_broker_registration_page').value | ||
document.getElementById('broker-staff-btn').disabled = true; | ||
if (broker_agency_search != undefined) { | ||
$.ajax({ | ||
url: '/benefit_sponsors/profiles/broker_agencies/broker_agency_staff_roles/search_broker_agency.js', | ||
type: "GET", | ||
data: {'q': broker_agency_search, "broker_registration_page": broker_registration_page}, | ||
success: function() { | ||
if ($('.table-responsive').length) { | ||
$('.broker-agency-submit').removeClass('hidden'); | ||
} | ||
} | ||
}); | ||
}; | ||
|
||
} | ||
|
||
function selectBrokereAgency(element) { | ||
var result = document.querySelectorAll('.result'); | ||
result.forEach(function (result) { | ||
var element = result.querySelectorAll('.staff-select-broker') | ||
element.forEach(function (ele) { | ||
ele.classList.remove("agency-selected"); | ||
}) | ||
}); | ||
document.getElementById('staff_profile_id').value = element.dataset.broker_agency_profile_id; | ||
element.closest(".staff-select-broker").classList.add('agency-selected') | ||
document.getElementById('broker-staff-btn').disabled = false; | ||
} |
Oops, something went wrong.