I\'m trying to perform a specific action when I close a jQuery UI dialog. Here\'s a simplified version of my code:
$(\'a.open-trigger\').click(function(){
You are attaching additional event handlers every time you call .click. That is why it is duplicating.
.click
$('a.close-trigger').click(function(){ alert(test); $('#dialog').dialog('close'); });
Pull that code out onto the same level as the other event binding and it should work as expected.