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 .= ''.$L->get('New version available').' ';
+ $html .= ' '.$L->get('New version available').'';
}
return $html;
}