[Bedework-commit] bedework r1942 -
trunk/deployment/webadmin/webapp/resources/resources
svnadmin at bedework.org
svnadmin at bedework.org
Thu Oct 30 17:24:43 EDT 2008
Author: johnsa
Date: 2008-10-30 17:24:43 -0400 (Thu, 30 Oct 2008)
New Revision: 1942
Modified:
trunk/deployment/webadmin/webapp/resources/resources/bedeworkAccess.js
Log:
small improvement on toggleAllowDenyFlag function
Modified: trunk/deployment/webadmin/webapp/resources/resources/bedeworkAccess.js
===================================================================
--- trunk/deployment/webadmin/webapp/resources/resources/bedeworkAccess.js 2008-10-30 21:21:30 UTC (rev 1941)
+++ trunk/deployment/webadmin/webapp/resources/resources/bedeworkAccess.js 2008-10-30 21:24:43 UTC (rev 1942)
@@ -156,11 +156,7 @@
// enable and disable corresponding allow/deny flags when a howItem checkbox is
// clicked
function toggleAllowDenyFlag(chkBoxObj,formObj) {
- if (chkBoxObj.checked == true) {
- activateAllowDenyFlag(chkBoxObj.value, formObj, false);
- } else {
- activateAllowDenyFlag(chkBoxObj.value, formObj, true);
- }
+ activateAllowDenyFlag(chkBoxObj.value, formObj, !chkBoxObj.checked);
}
// iterate over the allow/deny radio buttons and set them to true or false
function activateAllowDenyFlag(val,formObj,disabledFlag) {
More information about the Bedework-commit
mailing list