Author: jfthomps
Date: Tue Jul 25 18:24:32 2017
New Revision: 1802987
URL: http://svn.apache.org/viewvc?rev=1802987&view=rev
Log:
VCL-277 - Add support for images to join Active Directory domains
VCL-867 - Active Directory Authentication for Windows VM's
images.js: modified inlineEditResourceCB: added check for addomainvals being in
data.items.data before setting advalcnt; if it doesn't exist, just set the
value to 0
Modified:
vcl/trunk/web/js/resources/image.js
Modified: vcl/trunk/web/js/resources/image.js
URL:
http://svn.apache.org/viewvc/vcl/trunk/web/js/resources/image.js?rev=1802987&r1=1802986&r2=1802987&view=diff
==============================================================================
--- vcl/trunk/web/js/resources/image.js (original)
+++ vcl/trunk/web/js/resources/image.js Tue Jul 25 18:24:32 2017
@@ -75,7 +75,10 @@ function inlineEditResourceCB(data, ioAr
dijit.byId('connectmethodttd').set('href',
data.items.data.connectmethodurl);
if(data.items.data.ostype == 'windows') {
dojo.removeClass('imageadauthbox', 'hidden');
- var advalcnt =
Object.keys(data.items.data.addomainvals).length;
+ if('addomainvals' in data.items.data)
+ var advalcnt =
Object.keys(data.items.data.addomainvals).length;
+ else
+ var advalcnt = 0;
if(data.items.data.addomainid != null) {
dijit.byId('adauthenable').set('checked', true);
if('extraaddomainid' in data.items.data) {