Automatically select current version
This commit is contained in:
parent
3afbc5ca5c
commit
d1cfc83484
3 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
|
/**
|
||||||
|
* Tabs
|
||||||
|
*/
|
||||||
|
var current_version_tab = version.replaceAll('.', '-');
|
||||||
|
|
||||||
$('.menu .item').tab();
|
$('.menu .item').tab();
|
||||||
|
$('.menu .item').tab('change tab', current_version_tab);
|
||||||
});
|
});
|
||||||
|
|
|
@ -348,6 +348,7 @@ class Page
|
||||||
var api = {
|
var api = {
|
||||||
'token' : "<?= $options->getOption('api_token'); ?>",
|
'token' : "<?= $options->getOption('api_token'); ?>",
|
||||||
};
|
};
|
||||||
|
var version = '<?= VERSION ?>';
|
||||||
var wish_status_temporary = '<?= Wish::STATUS_TEMPORARY ?>';
|
var wish_status_temporary = '<?= Wish::STATUS_TEMPORARY ?>';
|
||||||
var wish_status_unavailable = '<?= Wish::STATUS_UNAVAILABLE ?>';
|
var wish_status_unavailable = '<?= Wish::STATUS_UNAVAILABLE ?>';
|
||||||
var wish_status_fulfilled = '<?= Wish::STATUS_FULFILLED ?>';
|
var wish_status_fulfilled = '<?= Wish::STATUS_FULFILLED ?>';
|
||||||
|
|
|
@ -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.');
|
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.');
|
||||||
?>
|
?>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<?php
|
||||||
|
/** TRANSLATORS: Changelog: Improved */
|
||||||
|
echo __('Changelog now automatically selects the current version, instead of the top most tab.');
|
||||||
|
?>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3 class="ui header"><?= __('Changed') ?></h3>
|
<h3 class="ui header"><?= __('Changed') ?></h3>
|
||||||
|
|
Loading…
Reference in a new issue