[embjopr-commits] EMBJOPR SVN: r13 - trunk/core/src/main/webapp/js.

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Sun Oct 19 14:49:29 EDT 2008


Author: ips
Date: 2008-10-19 14:49:28 -0400 (Sun, 19 Oct 2008)
New Revision: 13

Modified:
   trunk/core/src/main/webapp/js/embedded.js
Log:
update to match latest rhq.ds


Modified: trunk/core/src/main/webapp/js/embedded.js
===================================================================
--- trunk/core/src/main/webapp/js/embedded.js	2008-10-17 20:39:43 UTC (rev 12)
+++ trunk/core/src/main/webapp/js/embedded.js	2008-10-19 18:49:28 UTC (rev 13)
@@ -30,10 +30,10 @@
 var WINDOW_THEME = 'alphacube';
 
 /**
- * A special value (a single DELETE character) for an input that tells the server-side that the corresponding value
+ * A special value (a single NBSP character) for an input that tells the server-side that the corresponding value
  * should be set to null.
  */
-var NULL_INPUT_VALUE = "\u007F";
+var NULL_INPUT_VALUE = "\u00A0";
 
 /**
  * Set the unset status of the specified input.
@@ -226,21 +226,22 @@
    var inputs = Form.getInputs(form);
    for (var i = 0; i < inputs.length; i++)
    {
-      if (inputs[i].disabled)
+      var input = inputs[i];
+      if (input.disabled)
       {
          // NOTE: It is vital to enable any disabled inputs, since the browser will exclude disabled inputs from the
          //       POST request.
-         setInputDisabled(inputs[i], false, false);
+         setInputDisabled(input, false, false);
          // Some browsers (e.g. Firefox) will automatically un-gray-out the input, when the disabled property is
          // set to false, so we need to gray it out again, so it still appears to be disabled.
-         grayOutInput(inputs[i]);
-         if (inputs[i].unset)
+         grayOutInput(input);
+         if (input.unset)
          {
             // NOTE: Set the input's value to a special string that will allow the server-side to distinguish between a
             //       null (i.e. unset) value and an empty string value.
-            inputs[i].value = NULL_INPUT_VALUE;
+            input.value = NULL_INPUT_VALUE;
          }
-      }
+      }      
    }
 }
 




More information about the embjopr-commits mailing list