updateError.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Editor</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  11. <style>
  12. body{
  13. background-color:rgba(0,0,0,0);
  14. }
  15. </style>
  16. </head>
  17. <body>
  18. <div class="ui basic modal">
  19. <div class="ui icon header">
  20. <i class="red remove icon"></i>
  21. Update Error
  22. </div>
  23. <div class="content">
  24. <p id="errmsg"></p>
  25. </div>
  26. <div class="actions">
  27. <div class="ui ok inverted button" onclick="handleExit()">
  28. Cancel
  29. </div>
  30. </div>
  31. </div>
  32. <script>
  33. $(".ui.modal").modal("show");
  34. $(".ui.modal").modal({
  35. backdrop: 'static',
  36. keyboard: false
  37. });
  38. $('.ui.modal').modal("set active",false);
  39. //Get error message from hash
  40. if (window.location.hash.length > 1){
  41. errobj = decodeURIComponent(window.location.hash.substr(1));
  42. $("#errmsg").text(JSON.parse(errobj));
  43. }
  44. function handleExit(){
  45. ao_module_parentCallback(true);
  46. ao_module_close();
  47. }
  48. </script>
  49. </body>
  50. </html>