this is not the best solution, but don't close the comment-bb buttons when you click outside the comment, because the comment-bb buttons are outside the comment and if you click one on an empty comment box the comment goes away completely and the bbcode doesn't get inserted.

pull/490/head
friendica 2012-09-19 18:24:20 -07:00
parent 51bee79b21
commit c11aa30ef4
2 changed files with 8 additions and 8 deletions

View File

@ -42,10 +42,10 @@ function cmtBbOpen(comment, id) {
return false; return false;
} }
function cmtBbClose(comment, id) { function cmtBbClose(comment, id) {
if($(comment).hasClass('comment-edit-text-empty')) { // if($(comment).hasClass('comment-edit-text-empty')) {
$(".comment-edit-bb-" + id).hide(); // $(".comment-edit-bb-" + id).hide();
return true; // return true;
} // }
return false; return false;
} }
$(document).ready(function() { $(document).ready(function() {

View File

@ -45,10 +45,10 @@ function cmtBbOpen(comment, id) {
return false; return false;
} }
function cmtBbClose(comment, id) { function cmtBbClose(comment, id) {
if($(comment).hasClass('comment-edit-text-empty')) { // if($(comment).hasClass('comment-edit-text-empty')) {
$(".comment-edit-bb-" + id).hide(); // $(".comment-edit-bb-" + id).hide();
return true; // return true;
} // }
return false; return false;
} }