diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-04 20:28:49 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-08-04 20:28:49 +0000 |
commit | ff9b4c1eb95ff546aba7d325c6579c69757f6799 (patch) | |
tree | ea1cdef4a82787674453fc16137e52880c93cbb2 /java/sca/modules/domain-manager/src/main/resources/cloud.html | |
parent | b4384d70fc8c4dc583f0677a94372efa054d6516 (diff) |
Fixed Javascript warnings, use elementByID() to get references to UI elements instead of referencing global variables directly.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@682495 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/domain-manager/src/main/resources/cloud.html')
-rw-r--r-- | java/sca/modules/domain-manager/src/main/resources/cloud.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/sca/modules/domain-manager/src/main/resources/cloud.html b/java/sca/modules/domain-manager/src/main/resources/cloud.html index 2a64f91f54..d661d5d38b 100644 --- a/java/sca/modules/domain-manager/src/main/resources/cloud.html +++ b/java/sca/modules/domain-manager/src/main/resources/cloud.html @@ -44,6 +44,12 @@ </body> <script type="text/javascript"> + var toolbarGadgetDiv = elementByID(document, 'toolbarGadgetDiv'); + var cloudGadgetDiv = elementByID(document, 'cloudGadgetDiv'); + + var toolbarGadget = elementByID(document, 'toolbarGadget'); + var cloudGadget = elementByID(document, 'cloudGadget'); + function ongadget(win, doc) { if (doc == content(toolbarGadget)) { toolbarGadgetDiv.innerHTML = doc.body.innerHTML; |