possible fix for 2nd comment collapsing
This commit is contained in:
parent
d51d04cbdb
commit
4c9d8fd79d
@ -1,21 +1,33 @@
|
|||||||
function commentOpenRedbasic(obj,id) {
|
function commentOpenRedbasic(obj,id) {
|
||||||
$(document).click(function() {
|
|
||||||
|
$(document).unbind( "click", handler );
|
||||||
|
|
||||||
|
var handler = function() {
|
||||||
if(obj.value == aStr['comment']) {
|
if(obj.value == aStr['comment']) {
|
||||||
obj.value = '';
|
obj.value = '';
|
||||||
$("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty");
|
$("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty");
|
||||||
$("#comment-tools-" + id).show();
|
$("#comment-tools-" + id).show();
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
$(document).bind( "click", handler );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function commentCloseRedbasic(obj,id) {
|
function commentCloseRedbasic(obj,id) {
|
||||||
$(document).click(function() {
|
|
||||||
|
$(document).unbind( "click", handler );
|
||||||
|
|
||||||
|
var handler = function() {
|
||||||
if(obj.value == '') {
|
if(obj.value == '') {
|
||||||
obj.value = aStr['comment'];
|
obj.value = aStr['comment'];
|
||||||
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty");
|
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty");
|
||||||
$("#comment-tools-" + id).hide();
|
$("#comment-tools-" + id).hide();
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
|
|
||||||
|
$(document).bind( "click", handler );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
Reference in New Issue
Block a user