12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <link rel="stylesheet" href="../../script/semantic/semantic.min.css">
- <script type="text/javascript" src="../../script/jquery.min.js"></script>
- <script type="text/javascript" src="../../script/semantic/semantic.min.js"></script>
- <script type="text/javascript" src="../../script/ao_module.js"></script>
- <title>Storage Pool Error</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <style>
- body{
- background-color: white;
- }
- </style>
- </head>
- <body>
- <div class="ui container" style="padding-top: 25%;">
- <h2 class="ui header">
- <i class="remove icon"></i>
- <div class="content">
- <span id="errmsg"></span>
- <div class="sub header">Invalid settings detected in your inputed values.</div>
- </div>
- </h2>
- <div class="ui divider"></div>
- <button class="ui right floated button" onclick="ao_module_close();">Cancel</button>
- <button id="backbtn" class="ui green right floated button" onclick="back();"><i class="arrow left icon"></i> Back to Editor</button>
- </div>
- <script>
- var returnAddress = "";
- if (window.location.hash.length > 1){
- var err = window.location.hash.substr(1);
- err = decodeURIComponent(err);
- errObject = JSON.parse(err);
- console.log(errObject);
- $("#errmsg").text(errObject.Message);
- if (errObject.Source == ""){
- $("#backbtn").remove();
- }else{
- returnAddress = "./poolEditor.html#" + errObject.Source;
- }
- }
- function back(){
- if (returnAddress == ""){
- return
- }else{
- window.location.href = returnAddress;
- }
- }
- </script>
- </body>
- </html>
|