Skip to content

Commit

Permalink
Merge pull request #252 from sparc-request/kg-user_portal_loading_pro…
Browse files Browse the repository at this point in the history
…tocol_message

KG - User Portal Protocol Loading Message
  • Loading branch information
jleonardw9 committed Jan 19, 2016
2 parents b8de279 + c286835 commit a051fdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/portal/protocols.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ $(document).ready ->
})

renderProtocolAccordionTab: (protocol_id) ->
$(".protocol-information-#{protocol_id}").html("<img src='/assets/portal/spinner.gif' alt='Spinner'><br />Please be patient while the protocol/study loads.")
message = I18n["protocol_information"]["wait_message"]
$(".protocol-information-#{protocol_id}").html("<img src='/assets/portal/spinner.gif' alt='Spinner'><br />#{message}")
random_number = Math.floor(Math.random()*10101010101)
$.ajax({
method: 'get'
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ en:
srid: "SRID:"
status: "Status:"
title: "Title:"
wait_message: Please be patient while the Project/Study loads.

# Portal sub service request dialog
ssr_dialog:
Expand Down

0 comments on commit a051fdd

Please sign in to comment.