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.
parent
51bee79b21
commit
c11aa30ef4
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue