Browse Source

Improved update check

Tobias Reich 9 years ago
parent
commit
c2ca42e584
2 changed files with 2 additions and 2 deletions
  1. 2 2
      assets/js/lychee.js
  2. 0 0
      assets/min/main.js

+ 2 - 2
assets/js/lychee.js

@@ -8,7 +8,7 @@
 var lychee = {
 
 	title: "",
-	version: "2.6.0",
+	version: "2.6",
 	version_code: "020600",
 
 	api_path: "php/api.php",
@@ -220,7 +220,7 @@ var lychee = {
 
 		$.ajax({
 			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(); }
 		});
 
 	},

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff