Changeset 1263
- Timestamp:
- 01/28/07 04:10:41
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1262 r1263 6400 6400 <tr> 6401 6401 <td class="level1"> 6402 <input type="checkbox" value="A" name="howItem" onclick="setupAccessForm(this, this.form) "/>All6402 <input type="checkbox" value="A" name="howItem" onclick="setupAccessForm(this, this.form); toggleAllowDenyFlag(this, this.form)"/>All 6403 6403 </td> 6404 6404 <td> 6405 <input type="radio" value="A" name="A" checked="checked" />6405 <input type="radio" value="A" name="A" checked="checked" disabled="disabled"/> 6406 6406 </td> 6407 6407 <td> 6408 <input type="radio" value="-A" name="A" />6408 <input type="radio" value="-A" name="A" disabled="disabled"/> 6409 6409 </td> 6410 6410 </tr> 6411 6411 <tr> 6412 6412 <td class="level2"> 6413 <input type="checkbox" value="R" name="howItem" onclick="setupAccessForm(this, this.form) " checked="checked"/> Read6413 <input type="checkbox" value="R" name="howItem" onclick="setupAccessForm(this, this.form); toggleAllowDenyFlag(this, this.form)" checked="checked"/> Read 6414 6414 </td> 6415 6415 <td> … … 6422 6422 <tr> 6423 6423 <td class="level3"> 6424 <input type="checkbox" value="r" name="howItem" disabled="disabled" /> read ACL6424 <input type="checkbox" value="r" name="howItem" disabled="disabled" onclick="toggleAllowDenyFlag(this, this.form)"/> read ACL 6425 6425 </td> 6426 6426 <td> … … 6433 6433 <tr> 6434 6434 <td class="level3"> 6435 <input type="checkbox" value="P" name="howItem" disabled="disabled" /> read current user privilege set6435 <input type="checkbox" value="P" name="howItem" disabled="disabled" onclick="toggleAllowDenyFlag(this, this.form)"/> read current user privilege set 6436 6436 </td> 6437 6437 <td> … … 6444 6444 <tr> 6445 6445 <td class="level3"> 6446 <input type="checkbox" value="F" name="howItem" disabled="disabled" /> read freebusy6446 <input type="checkbox" value="F" name="howItem" disabled="disabled" onclick="toggleAllowDenyFlag(this, this.form)"/> read freebusy 6447 6447 </td> 6448 6448 <td> … … 6455 6455 <tr> 6456 6456 <td class="level2"> 6457 <input type="checkbox" value="W" name="howItem" onclick="setupAccessForm(this, this.form) "/> Write6457 <input type="checkbox" value="W" name="howItem" onclick="setupAccessForm(this, this.form); toggleAllowDenyFlag(this, this.form)"/> Write 6458 6458 </td> 6459 6459 <td> 6460 <input type="radio" value="W" name="W" checked="checked" />6460 <input type="radio" value="W" name="W" checked="checked" disabled="disabled"/> 6461 6461 </td> 6462 6462 <td> 6463 <input type="radio" value="-W" name="W" />6463 <input type="radio" value="-W" name="W" disabled="disabled"/> 6464 6464 </td> 6465 6465 </tr> 6466 6466 <tr> 6467 6467 <td class="level3"> 6468 <input type="checkbox" value="a" name="howItem" /> write ACL6468 <input type="checkbox" value="a" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> write ACL 6469 6469 </td> 6470 6470 <td> 6471 <input type="radio" value="a" name="a" checked="checked" />6471 <input type="radio" value="a" name="a" checked="checked" disabled="disabled"/> 6472 6472 </td> 6473 6473 <td> 6474 <input type="radio" value="-a" name="a" />6474 <input type="radio" value="-a" name="a" disabled="disabled"/> 6475 6475 </td> 6476 6476 </tr> 6477 6477 <tr> 6478 6478 <td class="level3"> 6479 <input type="checkbox" value="p" name="howItem" /> write properties6479 <input type="checkbox" value="p" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> write properties 6480 6480 </td> 6481 6481 <td> 6482 <input type="radio" value="p" name="p" checked="checked" />6482 <input type="radio" value="p" name="p" checked="checked" disabled="disabled"/> 6483 6483 </td> 6484 6484 <td> 6485 <input type="radio" value="-p" name="p" />6485 <input type="radio" value="-p" name="p" disabled="disabled"/> 6486 6486 </td> 6487 6487 </tr> 6488 6488 <tr> 6489 6489 <td class="level3"> 6490 <input type="checkbox" value="c" name="howItem" /> write content6490 <input type="checkbox" value="c" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> write content 6491 6491 </td> 6492 6492 <td> 6493 <input type="radio" value="c" name="c" checked="checked" />6493 <input type="radio" value="c" name="c" checked="checked" disabled="disabled"/> 6494 6494 </td> 6495 6495 <td> 6496 <input type="radio" value="-c" name="c" />6496 <input type="radio" value="-c" name="c" disabled="disabled"/> 6497 6497 </td> 6498 6498 </tr> 6499 6499 <tr> 6500 6500 <td class="level3"> 6501 <input type="checkbox" value="b" name="howItem" onclick="setupAccessForm(this, this.form) "/> create (bind)6501 <input type="checkbox" value="b" name="howItem" onclick="setupAccessForm(this, this.form); toggleAllowDenyFlag(this, this.form)"/> create (bind) 6502 6502 </td> 6503 6503 <td> 6504 <input type="radio" value="b" name="b" checked="checked" />6504 <input type="radio" value="b" name="b" checked="checked" disabled="disabled"/> 6505 6505 </td> 6506 6506 <td> 6507 <input type="radio" value="-b" name="b" />6507 <input type="radio" value="-b" name="b" disabled="disabled"/> 6508 6508 </td> 6509 6509 </tr> … … 6511 6511 <tr> 6512 6512 <td class="level4"> 6513 <input type="checkbox" value="S" name="howItem" onclick="setupAccessForm(this, this.form) "/> schedule6513 <input type="checkbox" value="S" name="howItem" onclick="setupAccessForm(this, this.form); toggleAllowDenyFlag(this, this.form)"/> schedule 6514 6514 </td> 6515 6515 <td> 6516 <input type="radio" value="S" name="S" checked="checked" />6516 <input type="radio" value="S" name="S" checked="checked" disabled="disabled"/> 6517 6517 </td> 6518 6518 <td> 6519 <input type="radio" value="-S" name="S" />6519 <input type="radio" value="-S" name="S" disabled="disabled"/> 6520 6520 </td> 6521 6521 </tr> 6522 6522 <tr> 6523 6523 <td class="level5"> 6524 <input type="checkbox" value="t" name="howItem" /> schedule request6524 <input type="checkbox" value="t" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> schedule request 6525 6525 </td> 6526 6526 <td> 6527 <input type="radio" value="t" name="t" checked="checked" />6527 <input type="radio" value="t" name="t" checked="checked" disabled="disabled"/> 6528 6528 </td> 6529 6529 <td> 6530 <input type="radio" value="-t" name="t" />6530 <input type="radio" value="-t" name="t" disabled="disabled"/> 6531 6531 </td> 6532 6532 </tr> 6533 6533 <tr> 6534 6534 <td class="level5"> 6535 <input type="checkbox" value="y" name="howItem" /> schedule reply6535 <input type="checkbox" value="y" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> schedule reply 6536 6536 </td> 6537 6537 <td> 6538 <input type="radio" value="y" name="y" checked="checked" />6538 <input type="radio" value="y" name="y" checked="checked" disabled="disabled"/> 6539 6539 </td> 6540 6540 <td> 6541 <input type="radio" value="-y" name="y" />6541 <input type="radio" value="-y" name="y" disabled="disabled"/> 6542 6542 </td> 6543 6543 </tr> 6544 6544 <tr> 6545 6545 <td class="level5"> 6546 <input type="checkbox" value="s" name="howItem" /> schedule free-busy6546 <input type="checkbox" value="s" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> schedule free-busy 6547 6547 </td> 6548 6548 <td> 6549 <input type="radio" value="s" name="s" checked="checked" />6549 <input type="radio" value="s" name="s" checked="checked" disabled="disabled"/> 6550 6550 </td> 6551 6551 <td> 6552 <input type="radio" value="-s" name="s" />6552 <input type="radio" value="-s" name="s" disabled="disabled"/> 6553 6553 </td> 6554 6554 </tr> … … 6556 6556 <tr> 6557 6557 <td class="level3"> 6558 <input type="checkbox" value="u" name="howItem" /> delete (unbind)6558 <input type="checkbox" value="u" name="howItem" onclick="toggleAllowDenyFlag(this, this.form)"/> delete (unbind) 6559 6559 </td> 6560 6560 <td> 6561 <input type="radio" value="u" name="u" checked="checked" />6561 <input type="radio" value="u" name="u" checked="checked" disabled="disabled"/> 6562 6562 </td> 6563 6563 <td> 6564 <input type="radio" value="-u" name="u" />6564 <input type="radio" value="-u" name="u" disabled="disabled"/> 6565 6565 </td> 6566 6566 </tr> trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkAccess.js
r1262 r1263 21 21 for (i = 0; i < formObj.howItem.length; i++) { 22 22 formObj.howItem[i].disabled = false; 23 // now iterate over corresponding radio buttons for each howItem24 for (j = 0; j < formObj[formObj.howItem[i].value].length; j++) {25 formObj[formObj.howItem[i].value][j].disabled = false;26 }27 23 } 28 24 } … … 48 44 formObj.howItem[i].value == "F") { 49 45 formObj.howItem[i].disabled = false; 50 // now iterate over corresponding radio buttons for each howItem51 for (j = 0; j < formObj[formObj.howItem[i].value].length; j++) {52 formObj[formObj.howItem[i].value][j].disabled = false;53 }54 46 } 55 47 } … … 88 80 formObj.howItem[i].value == "u") { 89 81 formObj.howItem[i].disabled = false; 90 // now iterate over corresponding radio buttons for each howItem91 for (j = 0; j < formObj[formObj.howItem[i].value].length; j++) {92 formObj[formObj.howItem[i].value][j].disabled = false;93 }94 82 } 95 83 } … … 118 106 formObj.howItem[i].value == "s") { 119 107 formObj.howItem[i].disabled = false; 120 // now iterate over corresponding radio buttons for each howItem121 for (j = 0; j < formObj[formObj.howItem[i].value].length; j++) {122 formObj[formObj.howItem[i].value][j].disabled = false;123 }124 108 } 125 109 } … … 146 130 formObj.howItem[i].value == "s") { 147 131 formObj.howItem[i].disabled = false; 148 // now iterate over corresponding radio buttons for each howItem149 for (j = 0; j < formObj[formObj.howItem[i].value].length; j++) {150 formObj[formObj.howItem[i].value][j].disabled = false;151 }152 132 } 153 133 } … … 169 149 for (i = 0; i < formObj.howItem.length; i++) { 170 150 formObj.howItem[i].disabled = false; 171 // now iterate over corresponding radio buttons for each howItem172 for (j = 0; j < formObj[formObj.howItem[i].value].length; j++) {173 formObj[formObj.howItem[i].value][j].disabled = false;174 }175 151 } 176 152 } 177 153 break; 154 } 155 } 156 // enable and disable corresponding allow/deny flags when a howItem checkbox is 157 // clicked 158 function toggleAllowDenyFlag(chkBoxObj,formObj) { 159 if (chkBoxObj.checked == true) { 160 activateAllowDenyFlag(chkBoxObj.value, formObj, false); 161 } else { 162 activateAllowDenyFlag(chkBoxObj.value, formObj, true); 163 } 164 } 165 // iterate over the allow/deny radio buttons and set them to true or false 166 function activateAllowDenyFlag(val,formObj,disabledFlag) { 167 for (i = 0; i < formObj[val].length; i++) { 168 formObj[val][i].disabled = disabledFlag; 178 169 } 179 170 }
