deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject [2/2] deltaspike git commit: DELTASPIKE-971 fixed hidden input creation
Date Sun, 02 Aug 2015 19:26:51 GMT
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 <tandraschko@apache.org>
Authored: Sun Aug 2 21:24:35 2015 +0200
Committer: Thomas Andraschko <tandraschko@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);
             }
         },
 


Mime
View raw message