cloud.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. function submitForm() {
  2. if (dialogHtml == '') {
  3. dialogHtml = $('siteInfo').innerHTML;
  4. $('siteInfo').innerHTML = '';
  5. }
  6. showWindow('open_cloud', dialogHtml, 'html');
  7. $('fwin_open_cloud').style.top = '80px';
  8. $('cloud_api_ip').value = cloudApiIp;
  9. return false;
  10. }
  11. function dealHandle(msg) {
  12. getMsg = true;
  13. if (msg['status'] == 'error') {
  14. $('loadinginner').innerHTML = '<font color="red">' + msg['content'] + '</font>';
  15. return;
  16. }
  17. $('loading').style.display = 'none';
  18. $('mainArea').style.display = '';
  19. if(cloudStatus == 'upgrade') {
  20. $('title').innerHTML = msg['cloudIntroduction']['upgrade_title'];
  21. $('msg').innerHTML = msg['cloudIntroduction']['upgrade_content'];
  22. } else {
  23. $('title').innerHTML = msg['cloudIntroduction']['open_title'];
  24. $('msg').innerHTML = msg['cloudIntroduction']['open_content'];
  25. }
  26. if (msg['navSteps']) {
  27. $('nav_steps').innerHTML = msg['navSteps'];
  28. }
  29. if (msg['protocalUrl']) {
  30. $('protocal_url').href = msg['protocalUrl'];
  31. }
  32. if (msg['cloudApiIp']) {
  33. cloudApiIp = msg['cloudApiIp'];
  34. }
  35. if (msg['manyouUpdateTips']) {
  36. $('manyou_update_tips').innerHTML = msg['manyouUpdateTips'];
  37. }
  38. }
  39. function expiration() {
  40. if(!getMsg) {
  41. $('loadinginner').innerHTML = '<font color="red">' + expirationText + '</font>';
  42. clearTimeout(expirationTimeout);
  43. }
  44. }