Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Created May 7, 2014 15:04
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/7e3b8bce872622788186 to your computer and use it in GitHub Desktop.
Save salsalabs/7e3b8bce872622788186 to your computer and use it in GitHub Desktop.
Change the lable for the letter field in Salsa actions
<script type="text/javascript">
// See https://help.salsalabs.com/entries/22876904-Hide-email-addresses-on-targeted-actions
$(document).ready(function() {
if (RegExp('action_KEY=NNNNN').test(window.location.href)) {
var checkExist = null;
var recipientChecker = function() {
if ($('.recipient').length) {
clearInterval(checkExist);
$('label[for^=Content]').text("YOUR REPLACEMENT HERE");
}
}
checkExist = setInterval(recipientChecker, 1000);
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment