Created
May 7, 2014 15:04
-
-
Save salsalabs/7e3b8bce872622788186 to your computer and use it in GitHub Desktop.
Change the lable for the letter field in Salsa actions
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"> | |
// 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