Skip to content

Commit

Permalink
Merge branch '9.1-assessment-report' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
tvcam committed Aug 4, 2023
2 parents a249e6f + 80a2f3c commit e72dd2d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/assets/javascripts/families/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,16 @@ CIF.FamiliesIndex = CIF.FamiliesWelcome = do ->
advanceFilter.handleShowAssessmentSelect()
advanceFilter.handleHideAssessmentSelect()

if $("#custom-assessment-score-0").val() > 0
advanceFilter.prepareFamilySearch()
_handleAjaxRequestToAssessment("#custom-assessment-score-0", $("#custom-assessment-domain-score-0").data("filename"))
setTimeout -> {
if $("#custom-assessment-domain-score-0").val() > 0
advanceFilter.prepareFamilySearch()
_handleAjaxRequestToAssessment("#custom-assessment-score-0", $("#custom-assessment-domain-score-0").data("filename"))

$('.assessment-domain-score').on 'shown.bs.modal', (e) ->
$($.fn.dataTable.tables(true)).DataTable().columns.adjust()
return
}, 500

$('.assessment-domain-score').on 'shown.bs.modal', (e) ->
$($.fn.dataTable.tables(true)).DataTable().columns.adjust()
return

_handleAjaxRequestToAssessment = (tableId, fileName)->
url = $("#{tableId} .api-assessment-path").data('assessment-params')
columns = $("#{tableId} .assessment-domain-headers").data('headers')
Expand Down

0 comments on commit e72dd2d

Please sign in to comment.