From cd210e3170df9b9ceadc5bab0d2e38047660b20d Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 26 Feb 2010 01:52:35 +0000 Subject: [PATCH] minor - add undefined and null check --- zkwebui/js/layout.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zkwebui/js/layout.js b/zkwebui/js/layout.js index da86eea6ba..9f3f1d4559 100644 --- a/zkwebui/js/layout.js +++ b/zkwebui/js/layout.js @@ -19,9 +19,11 @@ function ad_closeBuble(uuid) { } function scrollToRow(uuid){ - var cmp = $e(uuid); - cmp.style.display="inline"; - cmp.focus(); - cmp.style.display="none"; + var cmp = $e(uuid); + if (!(typeof cmp == "undefined") && !(cmp == null)) { + cmp.style.display="inline"; + cmp.focus(); + cmp.style.display="none"; + } } \ No newline at end of file