Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Nov 3, 2013
1 parent 45870d9 commit e8e8198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/js/cms-comment-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ function cmsCommentSubmit(that) {
}

function cmsCommentEditShow(that) {
console.log($(that).data('pk'));
console.log($("#comment_"+$(that).data('pk')).data('ver'));
console.log($("#main_comment_"+$(that).data('pk')).text().replace(/<br\s*[\/]?>/gi, "\n"));
$("#edit_commentform").data("pk", $(that).data('pk'));
$("#verion").attr("value", $("#main_comment_"+$(that).data('pk')).data('ver'));
$("#verion").attr("value", $("#comment_"+$(that).data('pk')).data('ver'));
$("#edit_body").text($("#main_comment_"+$(that).data('pk')).text().replace(/<br\s*[\/]?>/gi, "\n"));
$("#edit_comment").modal("show");
}
Expand Down

0 comments on commit e8e8198

Please sign in to comment.