From 659eafffe1c59ed8f4c4eb3e157fbdcdd7674879 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Wed, 3 Sep 2014 16:48:58 -0700 Subject: [PATCH] CLOUDSTACK-7483: UI > instance page, template page > hide "Original XS Version is 6.1+" field when OS Type is not Windows since property jsonObj.details.hypervisortoolsversion only applies to Windows - case sensitive when comparing OS Type. --- ui/scripts/instances.js | 2 +- ui/scripts/templates.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 6870f5b45c6..4d536e33929 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1709,7 +1709,7 @@ break; } } - if (ostypeName == undefined || ostypeName.indexOf("win") == -1) { + if (ostypeName == undefined || ostypeName.indexOf("Win") == -1) { hiddenFields.push('xenserverToolsVersion61plus'); } } diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index cef6a2a2c9e..dbc60b082ab 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -868,7 +868,7 @@ break; } } - if (ostypeName == undefined || ostypeName.indexOf("win") == -1) { + if (ostypeName == undefined || ostypeName.indexOf("Win") == -1) { hiddenFields.push('xenserverToolsVersion61plus'); } } @@ -1241,7 +1241,7 @@ break; } } - if (ostypeName == undefined || ostypeName.indexOf("win") == -1) { + if (ostypeName == undefined || ostypeName.indexOf("Win") == -1) { hiddenFields.push('xenserverToolsVersion61plus'); } }