title: Click action doesn't work with dialog
body: <p>I have problem with dialog and click action.</p>
  
  <pre><code>$("a[data-file]").click(function(e){
      e.preventDefault();
      getXML($(this).attr('data-file'));
  }); 
  </code></pre>
  
  <p>This code works correctly with constant anchors but doesn't works with anchors in jQuery dialog. I have tried also:</p>
  
  <pre><code>$("document").on( "click", "a[data-file]", function() {
      e.preventDefault();
      getXML($(this).attr('data-file'));
  });
  </code></pre>
  
  <p>But it doesn't work. How I should resolve this issue?</p>