From 600724da2b772cbd25c70a2dea735b7ae5c5502f Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Thu, 8 Sep 2022 21:35:15 +0200 Subject: [PATCH] Bug fix, the new version is not showing up --- bl-plugins/version/js/version.js | 6 ++++-- bl-plugins/version/plugin.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bl-plugins/version/js/version.js b/bl-plugins/version/js/version.js index a5005636..7020698f 100644 --- a/bl-plugins/version/js/version.js +++ b/bl-plugins/version/js/version.js @@ -8,10 +8,12 @@ function getLatestVersion() { method: "GET", dataType: 'json', success: function(json) { + console.log("[INFO] [PLUGIN VERSION] Request completed."); + // Constant BLUDIT_BUILD is defined on variables.js if (json.stable.build > BLUDIT_BUILD) { - $("#current-version").hide(); - $("#new-version").show(); + $(".current-version").hide(); + $(".new-version").show(); } }, error: function(json) { diff --git a/bl-plugins/version/plugin.php b/bl-plugins/version/plugin.php index 9f906fd8..a7cb41ef 100644 --- a/bl-plugins/version/plugin.php +++ b/bl-plugins/version/plugin.php @@ -42,10 +42,10 @@ class pluginVersion extends Plugin { global $L; $html = ''; if ($this->getValue('showCurrentVersion')) { - $html = ''.$L->get('Version').' '.(defined('BLUDIT_PRO')?'':'').''.BLUDIT_VERSION.''; + $html = ' '.$L->get('Version').' '.(defined('BLUDIT_PRO')?'':'').''.BLUDIT_VERSION.''; } if ($this->getValue('newVersionAlert')) { - $html .= ''; + $html .= ''; } return $html; }