title: jQuery: dialog question - change button after init
body: <p>i've defined a dialog with 2 buttons: ok + cancel.
  what i want to do now is change the ok button's function after initialization, so i tried:</p>
  
  <pre><code>dlgPrompt.dialog({
      buttons: {
          'Ok': function() {
              myFunction();
              $(this).dialog('close');
          }
      }
  });
  </code></pre>
  
  <p>unfortunately it doesnt work (when clicking ok, nothing happens).
  anyone knows whats wrong?</p>
  
  <p>thx</p>