[jquery] How can I disable a button in a jQuery dialog from a function?