possible fix for 2nd comment collapsing

This commit is contained in:
marijus 2014-06-05 11:02:27 +02:00
parent d51d04cbdb
commit 4c9d8fd79d

View file

@ -1,21 +1,33 @@
function commentOpenRedbasic(obj,id) {
$(document).click(function() {
$(document).unbind( "click", handler );
var handler = function() {
if(obj.value == aStr['comment']) {
obj.value = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty");
$("#comment-tools-" + id).show();
}
});
};
$(document).bind( "click", handler );
}
function commentCloseRedbasic(obj,id) {
$(document).click(function() {
$(document).unbind( "click", handler );
var handler = function() {
if(obj.value == '') {
obj.value = aStr['comment'];
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty");
$("#comment-tools-" + id).hide();
}
});
};
$(document).bind( "click", handler );
}
$(document).ready(function() {