exportxmind.ui.js 579 B

1234567891011121314151617181920
  1. function setDownloading(event)
  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. $(event.target).closest('div.modal')[0].classList.remove('show');
  10. $.cookie.set('downloading', null, {expires:config.cookieLife, path:config.webRoot});
  11. clearInterval(time);
  12. }
  13. }, 300);
  14. return true;
  15. }