CC-2950: Tell users if they are running an out-of-date version or not
Get rid of hardcoded url for downloading the latest version, and use the url stored in the stat server instead
This commit is contained in:
parent
d836425931
commit
eae90862b1
4 changed files with 25 additions and 8 deletions
|
@ -40,6 +40,13 @@ function getLatestVersion() {
|
|||
return $("#version-latest").html();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the download link to latest release in HTML
|
||||
*/
|
||||
function getLatestLink() {
|
||||
return "<a href='" + $("#version-link").html() + "'>" + getLatestVersion() + "</a>";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if current version is up to date
|
||||
*/
|
||||
|
@ -51,13 +58,6 @@ function isUpToDate() {
|
|||
return (diff == 0 && current == latest) || diff < 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the download link to latest release in HTML
|
||||
*/
|
||||
function getLatestLink() {
|
||||
return "<a href='http://apt.sourcefabric.org/misc/'>" + getLatestVersion() + "</a>";
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the tooltip for version notification
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue