removeSuccess.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" href="../../script/semantic/semantic.min.css">
  6. <script type="text/javascript" src="../../script/jquery.min.js"></script>
  7. <script type="text/javascript" src="../../script/semantic/semantic.min.js"></script>
  8. <script type="text/javascript" src="../../script/ao_module.js"></script>
  9. <title>Storage Pool Error</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  11. <style>
  12. body{
  13. background-color: white;
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="ui container" style="padding-top: 25%;">
  19. <h2 class="ui header">
  20. <i class="checkmark green icon"></i>
  21. <div class="content">
  22. <span id="msg"></span>
  23. <div class="sub header">If your File System is mounted, you might need to restart your system for the removal to be effective.</div>
  24. </div>
  25. </h2>
  26. <div class="ui divider"></div>
  27. <button class="ui right floated button" onclick="ao_module_close();">Cancel</button>
  28. <button id="backbtn" class="ui green right floated button" onclick="back();"><i class="arrow left icon"></i> Back to Editor</button>
  29. </div>
  30. <script>
  31. var returnAddress = "";
  32. if (window.location.hash.length > 1){
  33. var err = window.location.hash.substr(1);
  34. err = decodeURIComponent(err);
  35. var obj = JSON.parse(err);
  36. console.log(obj);
  37. $("#msg").text(obj[1] + ":/ has been removed from \"" + obj[0] + '"');
  38. returnAddress = "poolEditor.html#" + obj[0];
  39. }
  40. function back(){
  41. if (returnAddress == ""){
  42. return
  43. }else{
  44. window.location.href = returnAddress;
  45. }
  46. }
  47. </script>
  48. </body>
  49. </html>