summaryrefslogtreecommitdiff
path: root/themes/default/js/comment.js
diff options
context:
space:
mode:
authorJozef Selesi <jozefs@users.sourceforge.net>2008-11-18 08:28:32 +0000
committerJozef Selesi <jozefs@users.sourceforge.net>2008-11-18 08:28:32 +0000
commit3ebb751cda5d47147a5c828b4cb32ecd4a9f8042 (patch)
tree2394d31d14417f13e8cac72c11b9df01b3c84507 /themes/default/js/comment.js
parent59dbd1dc833a974f55f5cc66fa1c3204fa30980e (diff)
First iteration of REST controller refactoring. RESTful controllers that refer to collections should now have plural names and there should be only one controller per resource. Updated existing classes that implement REST_Controller. The routing now works like this:
GET /controller -> controller::_index() POST /controller -> controller::_create() GET /controller/id -> controller::_show() PUT /controller/id -> controller::_update() DELETE /controller/id -> controller::_delete() GET /form/edit/controller/resource_id -> controller::_form() GET /form/add/controller/data -> controller::_form()
Diffstat (limited to 'themes/default/js/comment.js')
-rw-r--r--themes/default/js/comment.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/themes/default/js/comment.js b/themes/default/js/comment.js
index 5cb236e8..f88f21e5 100644
--- a/themes/default/js/comment.js
+++ b/themes/default/js/comment.js
@@ -8,11 +8,10 @@ function ajaxify_comment_form() {
$("#gCommentForm").replaceWith(xhr.responseText);
if (xhr.status == 201) {
$.get(xhr.getResponseHeader("Location"), function(data, textStatus) {
- $("#gComment div.gBlockContent ul:first").append(data);
- $("#gComment div.gBlockContent ul:first li:last").hide().slideDown();
- }
- );
- $("#gCommentForm").clearForm();
+ $("#gComment div.gBlockContent ul:first").append(data);
+ $("#gComment div.gBlockContent ul:first li:last").hide().slideDown();
+ });
+ $("#gCommentForm").clearForm();
}
ajaxify_comment_form();
}