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.

This commit is contained in:
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;
}
function cmtBbClose(comment, id) {
if($(comment).hasClass('comment-edit-text-empty')) {
$(".comment-edit-bb-" + id).hide();
return true;
}
// if($(comment).hasClass('comment-edit-text-empty')) {
// $(".comment-edit-bb-" + id).hide();
// return true;
// }
return false;
}
$(document).ready(function() {

View file

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