You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ta...@apache.org on 2015/08/02 21:26:51 UTC

[2/2] deltaspike git commit: DELTASPIKE-971 fixed hidden input creation

DELTASPIKE-971 fixed hidden input creation

Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/8d9a276d
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/8d9a276d
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/8d9a276d

Branch: refs/heads/master
Commit: 8d9a276d9ae42d0e4dc9aec2951733cdd43f0f92
Parents: bf5dc62
Author: Thomas Andraschko <ta...@apache.org>
Authored: Sun Aug 2 21:24:35 2015 +0200
Committer: Thomas Andraschko <ta...@apache.org>
Committed: Sun Aug 2 21:24:35 2015 +0200

----------------------------------------------------------------------
 .../resources/META-INF/resources/deltaspike/windowhandler.js   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/8d9a276d/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
index 839447d..b90a1e7 100644
--- a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
+++ b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
@@ -368,12 +368,12 @@ window.dswh = window.dswh || {
                 var dspwid = form.elements["dspwid"];
                 if (!dspwid) {
                     dspwid = document.createElement("INPUT");
-                    dspwid.name = "dspwid";
-                    dspwid.type = "hidden";
+                    dspwid.setAttribute("name", "dspwid");
+                    dspwid.setAttribute("type", "hidden");
                     form.appendChild(dspwid);
                 }
 
-                dspwid.value = dswh.windowId;
+                dspwid.setAttribute("value", dswh.windowId);
             }
         },