Created
December 5, 2017 17:06
-
-
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.
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
<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