Fabien,

Try adding this to your "yes" click handler code:

$(this).unbind('click');

Mike



On 6/15/07, Fabien Meghazi <[EMAIL PROTECTED]> wrote:

Hi all,

I'm puzzled with the following code (context explained below) :

$(document).ready(function() {
        var modal = $("#modal_yesno")[0];
        $(".a_delete").css("cursor", "pointer").click(function() {
                var tr = $(this).parent().parent();
                var id = $(tr).attr("id").replace("item_", "");
                console.log(id);        // first console log
                $("#modal_yes").click(function() {
                        console.log(id);        // second console log
                        $.unblockUI();
                });
                $("#modal_no").click($.unblockUI);
                $.blockUI(modal, { width: '275px' });
        });
});

Reply via email to