Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

edit in place for comments

  • Loading branch information...
commit 990a5f1457fb52ada4e3c3e92b9a0dccd52aaca5 1 parent d31443e
@majic3 majic3 authored
View
10 wildflower/jlm/controllers/components/inplace_edit.js
@@ -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() });
}
-});
+});
View
2  wildflower/views/comments/_index_list_item.ctp
@@ -14,7 +14,7 @@
?>
<div class="comment_meta">
- <?
+ <?php
echo
$html->link(
$data['Comment']['name'],
Please sign in to comment.
Something went wrong with that request. Please try again.