diff --git a/app/assets/javascripts/my_modules/protocols.js b/app/assets/javascripts/my_modules/protocols.js index 2e9b30461..99de1ed6a 100644 --- a/app/assets/javascripts/my_modules/protocols.js +++ b/app/assets/javascripts/my_modules/protocols.js @@ -48,6 +48,7 @@ function initLinkUpdate() { modal.attr('data-url', data.url); modal.modal('show'); }); + modal.on('hidden.bs.modal', function() { modalBody.html(''); }); diff --git a/config/locales/en.yml b/config/locales/en.yml index 3a80b45c7..c006896f9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1082,9 +1082,9 @@ en: unlink_title: "Unlink protocol template" unlink_message: "Are you sure you want to unlink the task protocol from the templates version? This will stop any tracking of changes." unlink_btn_text: "Unlink" - revert_title: "Revert protocol" - revert_message: "Are you sure you want to revert the task protocol to the templates version? This will override any local changes you made." - revert_btn_text: "Revert" + revert_title: "Revert protocol template" + revert_message: "This will override any changes you made. We can’t recover them once you revert.

Are you sure?" + revert_btn_text: "Yes, revert it" update_parent_title: "Update templates version" update_parent_message: "Are you sure you want to update the templates protocol with this version? This will override any other changes made in the templates version." update_self_title: "Update from protocol templates" @@ -1093,7 +1093,7 @@ en: warning: "Are you sure?" unlink_flash: "Protocol was successfully unlinked." unlink_error: "Failed to unlink protocol." - revert_flash: "Protocol was successfully reverted to protocol version." + revert_flash: "Protocol was successfully reverted." revert_error: "Failed to revert protocol." revert_error_locked: "Failed to revert protocol. One or more files in the protocol are currently being edited." update_parent_flash: "Protocol in templates was successfully updated with the version from the task."