diff options
author | Git <git@what.cd> | 2013-10-28 08:01:14 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2013-10-28 08:01:14 +0000 |
commit | c1b5e99afc60b630c58b754d912f2e7cece12376 (patch) | |
tree | 521ab5cf53db9b9a6494dc1f503447572da585b1 /static/functions/questions.js | |
parent | c87186d11aaca6b9cb9f632e9e4e3c9f7b31658e (diff) | |
download | Gazelle-c1b5e99afc60b630c58b754d912f2e7cece12376.zip Gazelle-c1b5e99afc60b630c58b754d912f2e7cece12376.tar.gz Gazelle-c1b5e99afc60b630c58b754d912f2e7cece12376.tar.bz2 |
Empty commit
Diffstat (limited to 'static/functions/questions.js')
-rw-r--r-- | static/functions/questions.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/static/functions/questions.js b/static/functions/questions.js index 4fbb246..a55a052 100644 --- a/static/functions/questions.js +++ b/static/functions/questions.js @@ -44,5 +44,22 @@ $(document).ready(function() { respDiv.toggle(); } }); + + $(".ignore_link").click(function(e) { + e.preventDefault(); + var id = this.id; + $.ajax({ + type : "POST", + url : "questions.php?action=take_ignore_question", + data : { + "auth" : authkey, + "id" : id + } + }).done(function() { + $("#question" + id).remove(); + $("#answer" + id).remove(); + $("#responses_for_" + id).remove(); + }); + }); }); |