diff --git a/src/assets/js/changelog.js b/src/assets/js/changelog.js index 8085e894..ba82b1a4 100644 --- a/src/assets/js/changelog.js +++ b/src/assets/js/changelog.js @@ -1,3 +1,9 @@ $(function() { + /** + * Tabs + */ + var current_version_tab = version.replaceAll('.', '-'); + $('.menu .item').tab(); + $('.menu .item').tab('change tab', current_version_tab); }); diff --git a/src/classes/page.php b/src/classes/page.php index 4c3b1926..27250383 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -348,6 +348,7 @@ class Page var api = { 'token' : "= $options->getOption('api_token'); ?>", }; + var version = '= VERSION ?>'; var wish_status_temporary = '= Wish::STATUS_TEMPORARY ?>'; var wish_status_unavailable = '= Wish::STATUS_UNAVAILABLE ?>'; var wish_status_fulfilled = '= Wish::STATUS_FULFILLED ?>'; diff --git a/src/pages/changelog.php b/src/pages/changelog.php index 75ae5911..f618e661 100644 --- a/src/pages/changelog.php +++ b/src/pages/changelog.php @@ -103,6 +103,12 @@ $page->navigation(); echo __('Large parts of wishthis have been completely rewritten, such as the API and how pretty URLs work. The aim was to increase security and maintainability.'); ?> +