diff --git a/install/mods-for-hesk/js/ui-scripts.js b/install/mods-for-hesk/js/ui-scripts.js index 3831e1b0..2d061c64 100644 --- a/install/mods-for-hesk/js/ui-scripts.js +++ b/install/mods-for-hesk/js/ui-scripts.js @@ -8,6 +8,14 @@ function enableAllDisablable() { $('#updateText').hide(); } +function updateLink() { + var version = $('select[name="current-version"]').val(); + var format = 'installModsForHesk.php?v={0}'; + + var formattedLink = format.replace('{0}', version); + $('#upgrade-link').attr('href', formattedLink); +} + function startVersionUpgrade(version) { $('#spinner-' + version) .removeClass('fa-exclamation-triangle') diff --git a/install/mods-for-hesk/modsForHesk.php b/install/mods-for-hesk/modsForHesk.php index d41879de..8360e708 100644 --- a/install/mods-for-hesk/modsForHesk.php +++ b/install/mods-for-hesk/modsForHesk.php @@ -106,322 +106,55 @@ hesk_dbConnect();
Make sure that you have updated / installed HESK first; otherwise installation will fail!
-What version of Mods for HESK do you currently have installed?
+Select your current Mods for HESK version and click "Upgrade" to upgrade your installation. + If you have never installed Mods for HESK before, click "No previous installation".
Mods for HESK has detected that you currently have version ' . $version . ' installed. - The button you should click to upgrade has been highlighted for you. However, if - Mods for HESK selected the wrong version, click here to reset them.
'; - echo '