we probably want a seperate namespace to not disable all click events in document

This commit is contained in:
marijus 2014-06-05 11:21:02 +02:00
parent 4c9d8fd79d
commit 48f856e84c

View File

@ -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 );
}