Hello,I discovered that using the "disabled" property causes elements to not be sent when the form submits. The proper property is "readonly."
Thanks, Josh
From e28089058a7747d63c8c92b5cc09eab407b652c1 Mon Sep 17 00:00:00 2001 From: Joshua Roys <[email protected]> Date: Tue, 1 Dec 2009 10:34:52 -0500 Subject: [PATCH] Fix creating new config-managed symlinks --- .../fragments/configuration/channel/create.jspf | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/java/code/webapp/WEB-INF/pages/common/fragments/configuration/channel/create.jspf b/java/code/webapp/WEB-INF/pages/common/fragments/configuration/channel/create.jspf index f8cf93a..912e105 100644 --- a/java/code/webapp/WEB-INF/pages/common/fragments/configuration/channel/create.jspf +++ b/java/code/webapp/WEB-INF/pages/common/fragments/configuration/channel/create.jspf @@ -15,21 +15,21 @@ key="addfiles.jsp.type.symlink" /><br /> <script type="text/javascript"> function enableAllInputs(event) { - $('cffUid').disabled = ""; - $('cffGid').disabled = ""; - $('cffPermissions').disabled = ""; - $('cffMacroStart').disabled = ""; - $('cffMacroEnd').disabled = ""; + $('cffUid').readOnly = ""; + $('cffGid').readOnly = ""; + $('cffPermissions').readOnly = ""; + $('cffMacroStart').readOnly = ""; + $('cffMacroEnd').readOnly = ""; } Event.observe('file_radio', 'focus', enableAllInputs); Event.observe('dir_radio', 'focus', enableAllInputs); Event.observe('symlink_radio', 'focus', function(event) { - $('cffUid').disabled = "disabled"; - $('cffGid').disabled = "disabled"; - $('cffPermissions').disabled = "disabled"; - $('cffMacroStart').disabled = "disabled"; - $('cffMacroEnd').disabled = "disabled"; + $('cffUid').readOnly = "readonly"; + $('cffGid').readOnly = "readonly"; + $('cffPermissions').readOnly = "readonly"; + $('cffMacroStart').readOnly = "readonly"; + $('cffMacroEnd').readOnly = "readonly"; }); </script> <span class="small-text"><bean:message key="filedetails.jsp.tip.symlink" /></span> -- 1.6.5.2
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Spacewalk-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-devel
