Skip to content
Permalink
Browse files

Dynamic Downloadlink

Downloadlink to the Downloadpage of the successfull check.
  • Loading branch information
MartinH0 committed Jan 12, 2020
1 parent 2790f3d commit 62c21f37692431dcfe297859727d3933385a49a1
Showing with 3 additions and 1 deletion.
  1. +3 −1 application/modules/settings/views/partial_settings_updates.php
@@ -16,6 +16,7 @@
// or info label after 2 seconds
setTimeout(function() {
if (current_version < updatecheck) {
$('#updatecheck-updates-available').attr("href", "https://www.invoiceplane.com/downloads")
$('#updatecheck-loading').addClass('hidden');
$('#updatecheck-updates-available').removeClass('hidden');
}
@@ -36,6 +37,7 @@
// or info label after 2 seconds
setTimeout(function() {
if (current_version < updatecheck) {
$('#updatecheck-updates-available').attr("href", "https://www.invoiceplane.org/downloads")
$('#updatecheck-loading').addClass('hidden');
$('#updatecheck-updates-available').removeClass('hidden');
}
@@ -127,7 +129,7 @@
<?php _trans('updatecheck_failed'); ?>
</div>

<a href="https://invoiceplane.org/downloads" id="updatecheck-updates-available"
<a href="" id="updatecheck-updates-available"
class="btn btn-success btn-sm hidden" target="_blank">
<?php _trans('updates_available'); ?>
</a>

0 comments on commit 62c21f3

Please sign in to comment.
You can’t perform that action at this time.