Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions setup-nextcloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ static public function showHeader() {
background-color: #0092d9;
color: #fff;
}
#submit:disabled { background-color: #1A5276; color: #696969; }

</style>
</head>
Expand Down Expand Up @@ -612,7 +613,21 @@ static public function showFooter() {
static public function showContent($title, $content, $nextpage=''){
echo('
<script>
function disableNext() {
const currentStep = document.getElementsByName("step")[0].value;
let textResult = "";
if (currentStep === "1") {
textResult = "Checking...";
} else if (currentStep === "2") {
textResult = "Installing...";
} else {
textResult = "Redirecting...";
}
document.getElementById("submit").setAttribute("value", textResult);
document.getElementById("submit").setAttribute("disabled", "");
}
var validateForm = function(){
disableNext();
if (typeof urlNotExists === "undefined"){
return true;
}
Expand Down