[embjopr-commits] EMBJOPR SVN: r1020 - branches/AdminConsole_EAP_5_1/core/src/main/webapp/js.

embjopr-commits at lists.jboss.org embjopr-commits at lists.jboss.org
Fri May 13 17:03:02 EDT 2011


Author: ips
Date: 2011-05-13 17:03:02 -0400 (Fri, 13 May 2011)
New Revision: 1020

Modified:
   branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js
Log:
apply patch from https://issues.jboss.org/browse/JBPAPP-5285

Modified: branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js
===================================================================
--- branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js	2011-05-13 20:58:49 UTC (rev 1019)
+++ branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js	2011-05-13 21:03:02 UTC (rev 1020)
@@ -222,26 +222,27 @@
  */
 function prepareInputsForSubmission(form)
 {
-    var inputs = Form.getInputs(form);
+    var inputs = Form.getElements(form);
     for (var i = 0; i < inputs.length; i++)
-    {
-        var input = inputs[i];
-        if (input.disabled)
+    {        
+        if (inputs[i].disabled)
         {
             // NOTE: It is vital to enable any disabled inputs, since the browser will exclude disabled inputs from the
             //       POST request.
-            setInputDisabled(input, false, false);
+            setInputDisabled(inputs[i], 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(input);
-            if (input.unset)
+            grayOutInput(inputs[i]);
+            if (inputs[i].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.
-                input.value = NULL_INPUT_VALUE;
+                inputs[i].value = NULL_INPUT_VALUE;
             }
         }
     }
+    // Return true in case an onclick handler called us.
+	return true;
 }
 
 /**



More information about the embjopr-commits mailing list