felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r704878 - /felix/trunk/webconsole/src/main/resources/res/ui/configmanager.js
Date Wed, 15 Oct 2008 12:13:54 GMT
Author: cziegeler
Date: Wed Oct 15 05:13:54 2008
New Revision: 704878

URL: http://svn.apache.org/viewvc?rev=704878&view=rev
Log:
FELIX-774 : Add a hidden input field for checkboxes to handle the unchecked case.

Modified:
    felix/trunk/webconsole/src/main/resources/res/ui/configmanager.js

Modified: felix/trunk/webconsole/src/main/resources/res/ui/configmanager.js
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/resources/res/ui/configmanager.js?rev=704878&r1=704877&r2=704878&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/resources/res/ui/configmanager.js (original)
+++ felix/trunk/webconsole/src/main/resources/res/ui/configmanager.js Wed Oct 15 05:13:54
2008
@@ -332,8 +332,17 @@
         {
             inputEl.setAttribute( "checked", true );
         }
-        
-        return inputEl;
+
+        var hiddenEl = createElement( "input", "input", {
+            type: "hidden",
+            name: prop,
+            value: false
+        });
+        
+        var divEl = createElement("div", "div");
+        divEl.appendChild(inputEl);
+        divEl.appendChild(hiddenEl);
+        return divEl;
         
     } else if (typeof(type) == "object") { // predefined values
     



Mime
View raw message