zentaobiz.ui.js 936 B

1234567891011121314151617181920212223242526272829303132
  1. window.clickSubmit = function()
  2. {
  3. if(navigator.userAgent.toLowerCase().indexOf("opera") > -1) return true; // Opera don't support, omit it.
  4. var $fileName = $('#fileName');
  5. if($fileName.val() === '') $fileName.val(untitledText);
  6. $.cookie.set('downloading', 0, {expires:config.cookieLife, path:config.webRoot});
  7. time = setInterval("closeWindow()", 300);
  8. $('.modal-dialog').addClass('loading');
  9. return true;
  10. }
  11. window.closeWindow = function()
  12. {
  13. if($.cookie.get('downloading') == 1)
  14. {
  15. $('.modal-dialog').removeClass('loading');
  16. zui.Modal.hide();
  17. $.cookie.set('downloading', null);
  18. clearInterval(time);
  19. }
  20. }
  21. $(function()
  22. {
  23. setTimeout(function()
  24. {
  25. const checkedItem = $.cookie.get('checkedItem');
  26. if(checkedItem !== '' && checkedItem !== undefined) $('#exportDocPanel input[name=range]').zui('picker').$.setValue('selected');
  27. }, 600);
  28. })