Last active
June 27, 2017 20:25
-
-
Save rruhlen/916ab387aa605b843fa45fa63de410f1 to your computer and use it in GitHub Desktop.
Insert custom snippets to translate article ratings and confirmation message.
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"> | |
$(function() { | |
$("#rate_article div:nth-child(1) a").html("{{ system.snippets.yes }}"); | |
$("#rate_article div:nth-child(2) a").html("{{ system.snippets.no }}"); | |
}); | |
function showHello(){ | |
$("#rate_article").text("{{ system.snippets.thank_you }}"); | |
$("#rate_article").css("visibility", "visible"); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment