title: Jquery FileDownload doesn't trigger successCallback Event
body: <p>I'm trying to implement a function that on Click event, Download a file, and close the UI dialog When the file download is finished. 
  The problem is the, after  <code>$preparingFileModal.dialog({ modal: true })</code> the code doesn't trigger anymore and <code>successCallback</code> cannot detect the end fo file download . </p>
  
  <pre><code>$(function () {
      $(document).on("click", "a.fileDownloadCustomRichExperience", function () {
  
          var $preparingFileModal = $("#preparing-file-modal");
  
          $preparingFileModal.dialog({ modal: true });
  
          $.fileDownload($(this).prop('href'), {
              successCallback: function (url) {
  
                  $preparingFileModal.dialog('close');
              },
              failCallback: function (responseHtml, url) {
  
                  $preparingFileModal.dialog('close');
                  $("#error-modal").dialog({ modal: true });
              }
          });
          return false; //this is critical to stop the click event which will trigger a normal file download!
      });
  });
  
  &lt;div id="preparing-file-modal" title="Preparing report..." style="display: none;"&gt;
      We are preparing your report, please wait...
  
      &lt;div class="ui-progressbar-value ui-corner-left ui-corner-right" style="width: 100%; height:22px; margin-top: 20px;"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="error-modal" title="Error" style="display: none;"&gt;
      There was a problem generating your report, please try again.
  &lt;/div&gt;
  </code></pre>