Fechar jQuery
$('#form-dialog').dialog('close')
Undefined
$('#form-dialog').dialog('close')
//To close a dialog with jquery simply do...
$('#form-dialog').dialog('close')