Permalink
Browse files

edit in place for comments

  • Loading branch information...
majic3 committed Mar 8, 2010
1 parent d31443e commit 990a5f1457fb52ada4e3c3e92b9a0dccd52aaca5
@@ -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;
};
@@ -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);
@@ -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);
@@ -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);
@@ -109,4 +109,4 @@ $.jlm.addComponent('inplaceEdit', {
commentEl.hide("drop", { direction: "left" }, 400, function() { $(this).remove() });
}
-});
+});
@@ -14,7 +14,7 @@
?>
<div class="comment_meta">
- <?
+ <?php
echo
$html->link(
$data['Comment']['name'],

0 comments on commit 990a5f1

Please sign in to comment.