diff options
-rw-r--r-- | install.php | 5 | ||||
-rw-r--r-- | script/install.js | 4 |
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(); |