diff --git a/core/ajax/jeedom.ajax.php b/core/ajax/jeedom.ajax.php
index efa538d3fe..fbbc42d6c9 100644
--- a/core/ajax/jeedom.ajax.php
+++ b/core/ajax/jeedom.ajax.php
@@ -115,6 +115,9 @@
$page = 'administration';
}
$version = substr(jeedom::version(), 0, 3);
+ if (init('remoteVersion') != '') {
+ $version = substr(init('remoteVersion'), 0, 3);
+ }
ajax::success(config::byKey('doc::base_url', 'core') . '/' . config::byKey('language', 'core', 'fr_FR') . '/core/' . $version . '/' . secureXSS($page) . '?theme=' . $theme);
}
throw new Exception(__('Aucune documentation trouvée', __FILE__), -1234);
diff --git a/core/js/jeedom.class.js b/core/js/jeedom.class.js
index d8b6e26014..5d79b1077c 100644
--- a/core/js/jeedom.class.js
+++ b/core/js/jeedom.class.js
@@ -756,6 +756,7 @@ jeedom.getDocumentationUrl = function(_params) {
plugin: params.plugin || null,
page: params.page || null,
theme: params.theme || null,
+ remoteVersion: params.remoteVersion || null,
}
domUtils.ajax(paramsAJAX)
}
diff --git a/desktop/js/update.js b/desktop/js/update.js
index 2da798747a..f80ceba932 100644
--- a/desktop/js/update.js
+++ b/desktop/js/update.js
@@ -561,6 +561,24 @@ if (!jeeFrontEnd.update) {
check_backupBefore.removeAttribute('disabled')
}
})
+
+ contentEl.querySelector('#bt_changelogCore').addEventListener('click', function(event) {
+ jeedom.getDocumentationUrl({
+ page: 'changelog',
+ theme: document.body.getAttribute('data-theme'),
+ remoteVersion: document.querySelector('tr[data-logicalid="jeedom"] [data-l1key="remoteVersion"]').textContent,
+ error: function(error) {
+ jeedomUtils.showAlert({
+ attachTo: jeeDialog.get('#md_specifyUpdate', 'dialog'),
+ message: error.message,
+ level: 'danger'
+ })
+ },
+ success: function(url) {
+ window.open(url, '_blank')
+ }
+ })
+ })
},
onShown: function() {
jeeDialog.get('#md_update', 'content').querySelector('#md_specifyUpdate').removeClass('hidden')
diff --git a/desktop/php/update.php b/desktop/php/update.php
index 5d7295083a..47400a9817 100644
--- a/desktop/php/update.php
+++ b/desktop/php/update.php
@@ -49,7 +49,7 @@
{{Vérifier les mises à jour}}
{{Sauvegarder}}
{{Mettre à jour}}
-
+
@@ -127,7 +127,11 @@