From 27e64f1dc6cc43b40592337eed360bdf7e3d7a59 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 27 Nov 2008 06:14:32 +0000 Subject: Move javascript from default theme to appropriate modules --- themes/default/js/comment.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 themes/default/js/comment.js (limited to 'themes/default/js/comment.js') diff --git a/themes/default/js/comment.js b/themes/default/js/comment.js deleted file mode 100644 index 259b4826..00000000 --- a/themes/default/js/comment.js +++ /dev/null @@ -1,19 +0,0 @@ -$("document").ready(function() { - ajaxify_comment_form(); -}); - -function ajaxify_comment_form() { - $("#gComments form").ajaxForm({ - complete: function(xhr, statusText) { - $("#gComments form").replaceWith(xhr.responseText); - if (xhr.status == 201) { - $.get(xhr.getResponseHeader("Location"), function(data, textStatus) { - $("#gComments .gBlockContent ul:first").append("
  • "+data+"
  • "); - $("#gComments .gBlockContent ul:first li:last").hide().slideDown(); - }); - $("#gComments form").clearForm(); - } - ajaxify_comment_form(); - } - }); -} -- cgit v1.2.3