|
@@ -7,7 +7,7 @@
|
|
|
<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>
|
|
|
+ <!-- <script type="text/javascript" src="../../script/ao_module.js"></script> -->
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="ui container">
|
|
@@ -109,7 +109,7 @@
|
|
|
</div>
|
|
|
<small>Usually with named as: webpack.tar.gz</small>
|
|
|
<br><br>
|
|
|
- <button class="ui red button" onclick="updateViaURL();"><i class="cloud upload icon"></i> Execute Update</button>
|
|
|
+ <button class="ui red button updateBtn" onclick="updateViaURL();"><i class="cloud upload icon"></i> Execute Update</button>
|
|
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
@@ -202,6 +202,7 @@
|
|
|
|
|
|
socket.onopen = function(e) {
|
|
|
$("#downloadStatusText").text("Download Started");
|
|
|
+ $(".updateBtn").addClass("disabled");
|
|
|
};
|
|
|
|
|
|
socket.onmessage = function(event) {
|
|
@@ -239,11 +240,13 @@
|
|
|
$("#fallbackmodeExp").show();
|
|
|
$("#downloadProgressBar").find(".progress").text("Downloading");
|
|
|
$("#downloadProgressBar").css("width", "50%");
|
|
|
+ $(".updateBtn").addClass("disabled");
|
|
|
$.get(`../../system/update/download?webpack=${webpackDownloadURL}&binary=${binaryDownloadURL}`, function(data){
|
|
|
if (data.error !== undefined){
|
|
|
hideAllStatus();
|
|
|
$("#failed").slideDown();
|
|
|
$("#failedErrorMessage").text(data.error);
|
|
|
+ $(".updateBtn").removeClass("disabled");
|
|
|
}else{
|
|
|
hideAllStatus();
|
|
|
$("#success").slideDown();
|
|
@@ -253,6 +256,7 @@
|
|
|
}
|
|
|
|
|
|
function checkLauncher(){
|
|
|
+ $(".updateBtn").removeClass("disabled");
|
|
|
$.get("/system/update/restart", function(data){
|
|
|
if (data.error !== undefined){
|
|
|
//No launcher
|