Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(function() {
- $("a[id ^='commentLink-']").click(function() {
- match = this.id.match(/commentLink-(d+)/);
- container = $("div#commentContainer-" + match[1])
- container.toggle();
- if (container.is(":visible")) {
- container.load($(this).attr("href"));
- } else {
- container.html("Loading...");
- }
- return false; //Prevent default action
- });
- });
- </script>
- $(function() {
- $("a[id ^='commentLink-']").live('click', function(event) {
- match = this.id.match(/commentLink-(d+)/);
- container = $("div#commentContainer-" + match[1])
- container.toggle();
- if (container.is(":visible")) {
- container.load($(this).attr("href"));
- } else {
- container.html("Loading...");
- }
- event.preventDefault();
- });
- });
- $("a[id ^='commentLink-']").click(function() {
- $("a[id ^='commentLink-']").live('click', function(event) {
Add Comment
Please, Sign In to add comment