Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created December 5, 2017 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salsalabs/8654fb3e70836c799eeaa6131d715e2e to your computer and use it in GitHub Desktop.
Save salsalabs/8654fb3e70836c799eeaa6131d715e2e to your computer and use it in GitHub Desktop.
Script to add a label to the Comment field in a Salsa Classic petition.
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function () {
var e = document.querySelector('input[name=action_KEY]')
if (e != null) {
var label = document.querySelector('label[for="Comment"]');
if (label != null) {
label.innerHTML = "Comment";
}
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment