1
0
Fork 0

One click comments on threaded items.

comment-wwedit-wrapper and wall-item-outside-wrapper get the additional class "threaded" when applicable.
This commit is contained in:
Domovoy 2012-08-23 13:09:35 +02:00
commit 5dd3e8a990
7 changed files with 67 additions and 27 deletions

View file

@ -45,11 +45,19 @@ function insertFormatting(comment,BBcode,id) {
return true;
}
function cmtBbOpen(id) {
$(".comment-edit-bb-" + id).show();
function cmtBbOpen(comment, id) {
if($(comment).hasClass('comment-edit-text-full')) {
$(".comment-edit-bb-" + id).show();
return true;
}
return false;
}
function cmtBbClose(id) {
$(".comment-edit-bb-" + id).hide();
function cmtBbClose(comment, id) {
if($(comment).hasClass('comment-edit-text-empty')) {
$(".comment-edit-bb-" + id).hide();
return true;
}
return false;
}
$(document).ready(function() {
@ -96,4 +104,4 @@ $('.savedsearchterm').hover(
</script>
EOT;
}
}