Skip to content

Commit

Permalink
edit in place for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
majic3 committed Mar 8, 2010
1 parent d31443e commit 990a5f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions wildflower/jlm/controllers/components/inplace_edit.js
Expand Up @@ -43,7 +43,7 @@ $.jlm.addComponent('inplaceEdit', {
formEl.ajaxForm(afterSave);
}

var url = $.jlm.base + '/wf/comments/get_content/' + commentId;
var url = $.jlm.base + '/' + $.jlm.params.prefix + '/comments/get_content/' + commentId;
var content = $.post(url, respond, {}, 'json');
return false;
};
Expand All @@ -65,7 +65,7 @@ $.jlm.addComponent('inplaceEdit', {

var commentId = commentEl.attr('id').split('-');
commentId = commentId[1];
var url = $.jlm.base + '/admin/comments/delete';
var url = $.jlm.base + '/' + $.jlm.params.prefix + '/comments/delete';
var data = { 'data[Comment][id]': commentId };
$.post(url, data);

Expand All @@ -84,7 +84,7 @@ $.jlm.addComponent('inplaceEdit', {

var commentId = commentEl.attr('id').split('-');
commentId = commentId[1];
var url = $.jlm.base + '/admin/comments/mark_spam';
var url = $.jlm.base + '/' + $.jlm.params.prefix + '/comments/mark_spam';
var data = { 'data[Comment][id]': commentId };
$.post(url, data);

Expand All @@ -99,7 +99,7 @@ $.jlm.addComponent('inplaceEdit', {

var commentId = commentEl.attr('id').split('-');
commentId = commentId[1];
var url = $.jlm.base + '/admin/comments/not_spam';
var url = $.jlm.base + '/' + $.jlm.params.prefix + '/comments/not_spam';
var data = { 'data[Comment][id]': commentId };
$.post(url, data);

Expand All @@ -109,4 +109,4 @@ $.jlm.addComponent('inplaceEdit', {
commentEl.hide("drop", { direction: "left" }, 400, function() { $(this).remove() });
}

});
});
2 changes: 1 addition & 1 deletion wildflower/views/comments/_index_list_item.ctp
Expand Up @@ -14,7 +14,7 @@
?>

<div class="comment_meta">
<?
<?php
echo
$html->link(
$data['Comment']['name'],
Expand Down

0 comments on commit 990a5f1

Please sign in to comment.