summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-01 15:07:20 +0100
committerSimon Rettberg2017-12-01 15:07:20 +0100
commit493b2ce8bcde8609f51c9c755dec6bf8b366059e (patch)
tree2090ec09b682f02506fbc455ff1505c4bfc33f44
parent[inc/User] Fix getAllowedLocations for legacy permission manager (diff)
downloadslx-admin-493b2ce8bcde8609f51c9c755dec6bf8b366059e.tar.gz
slx-admin-493b2ce8bcde8609f51c9c755dec6bf8b366059e.tar.xz
slx-admin-493b2ce8bcde8609f51c9c755dec6bf8b366059e.zip
<install.php> add another button at the top
-rw-r--r--install.php5
-rw-r--r--script/install.js4
2 files changed, 6 insertions, 3 deletions
diff --git a/install.php b/install.php
index b736713f..a5d18f0c 100644
--- a/install.php
+++ b/install.php
@@ -343,6 +343,9 @@ if (DIRECT_MODE) {
</head>
<body>
<h1>Modules</h1>
+ <button onclick="slxRunInstall()" class="install-btn">Install/Upgrade</button>
+ <br>
+ <br>
<table>
<tr><th>Module</th><th>Status</th></tr>
HERE;
@@ -353,7 +356,7 @@ HERE;
echo <<<HERE
</table>
<br><br>
- <button onclick="slxRunInstall(this)">Install/Upgrade</button>
+ <button onclick="slxRunInstall()" class="install-btn">Install/Upgrade</button>
<script src="script/jquery.js"></script>
<script src="script/install.js"></script>
</body>
diff --git a/script/install.js b/script/install.js
index 9738f1a2..abb76d6f 100644
--- a/script/install.js
+++ b/script/install.js
@@ -4,11 +4,11 @@ var slxTries = {};
var slxCurrent = false;
var slxTimer = false;
-function slxRunInstall(btn) {
+function slxRunInstall() {
if (onceOnlyGoddammit)
return;
- $(btn).prop('disabled', true);
onceOnlyGoddammit = true;
+ $('.install-btn').prop('disabled', true);
var first = false;
list = $('.id-col').each(function () {
var id = $(this).text();