mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 17:22:56 -07:00
Better version comparisons
This commit is contained in:
parent
93b8f32f68
commit
65b3d0c0de
2 changed files with 7 additions and 16 deletions
|
@ -2437,8 +2437,8 @@ $(document).ready(function() {
|
|||
pms_logs = false;
|
||||
|
||||
// Checks to see if PMS server version is >= 0.9.14 with automaatically logged IP addresses
|
||||
var version = "${config['pms_version']}".split('.');
|
||||
if (version && (parseInt(version[0]) >= 0 || parseInt(version[0]) == 0 && parseInt(version[1]) >= 9 && parseInt(version[2]) >= 14)) {
|
||||
var version = parseInt($.map("${config['pms_version']}".split('-')[0].split('.').slice(0,4), function(v) { return ('0000'+v).substring(v.length); }).join(""));
|
||||
if (version > 900140000) {
|
||||
$("#debugLogCheck").html("IP address is automatically logged for PMS version 0.9.14 and above.");
|
||||
$("#ip_logging_enable").attr("disabled", true);
|
||||
$("#ip_logging_enable").attr("checked", true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue