ui.dialog disable

ui.dialog disable


Hello, all.
I just started using jquery-ui in my web-app, and it looks and feels
great to me. But I've meet the first issue. Let me have a dialog with
some form inside it, and Save/Cancel buttons. When user press Save I
send form data to server via ajax. To prevent user from doing any
movements while bytes are running back and forth I disable dialog
( dlg.dialog('disable') ). But this disabling only inputs in my form,
not Save/Cancel buttons! I expect them to be disabled too. Is it a
bug, ir I've just missed the right way to disable dialog?