From 4945339bc347f5499293233283a387bff1a679c5 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Sat, 25 Sep 2010 10:04:27 +0000 Subject: [PATCH] return null git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/configure/update.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/xCAT-UI/js/configure/update.js b/xCAT-UI/js/configure/update.js index 3f4300ac9..f4efe7a0b 100644 --- a/xCAT-UI/js/configure/update.js +++ b/xCAT-UI/js/configure/update.js @@ -271,14 +271,16 @@ function ShowUpdateResult(data) $('#loadingpic').remove(); var resArray = data.rsp[0].split(/\n/); - if (('' == resArray[resArray.length - 1]) && (resArray.length > 1)){ - $('#update').append(resArray[resArray.length - 2]); - } - else{ - $('#update').append(resArray[resArray.length - 1]); + if (0 < resArray.length){ + if (('' == resArray[resArray.length - 1]) && (resArray.length > 1)){ + $('#update').append(resArray[resArray.length - 2]); + } + else{ + $('#update').append(resArray[resArray.length - 1]); + } } - $('#update').append('Response Detail:'); + $('#update').append('Response Detail:'); $('#update a').bind('click', function(){ $('#resDetail').show(); });