mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
possible fix for 2nd comment collapsing
This commit is contained in:
parent
d51d04cbdb
commit
4c9d8fd79d
1 changed files with 16 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue