From e448b2a636d88b5a9200b3a6e19726ba52774fc9 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Sat, 25 Jun 2016 13:17:23 +0200 Subject: [PATCH] Add a button to start updater --- index.php | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index 6dbb4b87..c58c40f5 100644 --- a/index.php +++ b/index.php @@ -885,6 +885,25 @@ public function moveNewVersionInPlace() { color: #555; } + button { + font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif; + font-size: 13px; + font-weight: 600; + color: #555; + margin: 3px 3px 3px 0; + padding: 5px; + background-color: rgba(255, 255, 255, .95); + border-radius: 3px; + border: 1px solid rgba(240,240,240,.9); + cursor: pointer; + outline: none; + } + + button:hover, button:focus { + background-color: rgba(240,240,240,.9); + color: #111; + } + @@ -911,7 +930,17 @@ public function moveNewVersionInPlace() {

Initializing

Current version is getCurrentVersion()); ?>.
checkForUpdate()); ?>
-
+ + updateAvailable()) { + ?> + + + + +
  • Check for expected files

    @@ -1160,14 +1189,11 @@ function performStep(number, callback) { } }; - updateAvailable()) { - ?> + function startUpdate() { currentStep('step-check-files'); performStep(1, performStepCallbacks[1]); - +