You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ri...@apache.org on 2005/09/21 22:54:53 UTC
svn commit: r290826 -
/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/javascript/javaScript.properties
Author: rich
Date: Wed Sep 21 13:54:49 2005
New Revision: 290826
URL: http://svn.apache.org/viewcvs?rev=290826&view=rev
Log:
Fix for http://issues.apache.org/jira/browse/BEEHIVE-945 : Popup window does not close if <netui:retrievePopupOutput> references a nonexistant element
tests: bvt in netui (WinXP)
BB: self (linux)
Modified:
beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/javascript/javaScript.properties
Modified: beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/javascript/javaScript.properties
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/javascript/javaScript.properties?rev=290826&r1=290825&r2=290826&view=diff
==============================================================================
--- beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/javascript/javaScript.properties (original)
+++ beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/javascript/javaScript.properties Wed Sep 21 13:54:49 2005
@@ -94,7 +94,11 @@
'{'\n\
\ for (var i in map)\n\
\ '{'\n\
-\ document.getElementById(i).value=map[i];\n\
+\ var element = document.getElementById(i);\n\
+\ if (element != null)\n\
+\ '{'\n\
+\ element.value=map[i];\n\
+\ '}'\n\
\ '}'\n\
'}'\n