Commit c2ca42e5 authored by Tobias Reich's avatar Tobias Reich
Browse files

Improved update check

parent 0908dd75
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
var lychee = { var lychee = {
title: "", title: "",
version: "2.6.0", version: "2.6",
version_code: "020600", version_code: "020600",
api_path: "php/api.php", api_path: "php/api.php",
...@@ -220,7 +220,7 @@ var lychee = { ...@@ -220,7 +220,7 @@ var lychee = {
$.ajax({ $.ajax({
url: lychee.update_path, url: lychee.update_path,
success: function(data) { if (data!=lychee.version) $("#version span").show(); } success: function(data) { if (parseInt(data)>parseInt(lychee.version_code)) $("#version span").show(); }
}); });
}, },
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment