we probably want a seperate namespace to not disable all click events in document
This commit is contained in:
parent
4c9d8fd79d
commit
48f856e84c
@ -1,6 +1,6 @@
|
||||
function commentOpenRedbasic(obj,id) {
|
||||
|
||||
$(document).unbind( "click", handler );
|
||||
$(document).unbind( "click.commentOpen", handler );
|
||||
|
||||
var handler = function() {
|
||||
if(obj.value == aStr['comment']) {
|
||||
@ -10,13 +10,13 @@ function commentOpenRedbasic(obj,id) {
|
||||
}
|
||||
};
|
||||
|
||||
$(document).bind( "click", handler );
|
||||
$(document).bind( "click.commentOpen", handler );
|
||||
|
||||
}
|
||||
|
||||
function commentCloseRedbasic(obj,id) {
|
||||
|
||||
$(document).unbind( "click", handler );
|
||||
$(document).unbind( "click.commentClose", handler );
|
||||
|
||||
var handler = function() {
|
||||
if(obj.value == '') {
|
||||
@ -26,7 +26,7 @@ function commentCloseRedbasic(obj,id) {
|
||||
}
|
||||
};
|
||||
|
||||
$(document).bind( "click", handler );
|
||||
$(document).bind( "click.commentClose", handler );
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user