exporttemplate.ui.js 563 B

1234567891011121314151617181920
  1. window.setDownloading = function()
  2. {
  3. if(navigator.userAgent.toLowerCase().indexOf("opera") > -1) return true; // Opera don't support, omit it.
  4. $.cookie.set('downloading', 0, {expires:config.cookieLife, path:config.webRoot});
  5. time = setInterval(function()
  6. {
  7. if($.cookie.get('downloading') == 1)
  8. {
  9. $('.modal .modal-actions .close')[0].click();
  10. $.cookie.set('downloading', null, {expires:config.cookieLife, path:config.webRoot});
  11. clearInterval(time);
  12. }
  13. }, 300);
  14. return true;
  15. }