Commit ebf08fad3cf5f2c08b7a5209d49f71eb7a7f07ba
1 parent
8a44f8e0
KTS-3622
"Allocating Roles affects System Performance (OptionTransfer.js)" Fixed. The filter now starts at 3 characters. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9386 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
6 deletions
templates/ktcore/folder/roles_manageusers.smarty
| ... | ... | @@ -2,17 +2,17 @@ |
| 2 | 2 | |
| 3 | 3 | {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')} |
| 4 | 4 | |
| 5 | -<p class="descriptiveText">{i18n}Add or remove users for this role. {/i18n}</p> | |
| 5 | +<p class="descriptiveText">{i18n}Add or remove users for this role. {/i18n}</p> | |
| 6 | 6 | |
| 7 | 7 | <form action="{$smarty.server.PHP_SELF}" method="POST" id="userroleform"> |
| 8 | 8 | <input type="hidden" name="action" value="setRoleUsers" /> |
| 9 | 9 | <input type="hidden" name="allocation_id" value="{$edit_rolealloc->getId()}" /> |
| 10 | 10 | <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" /> |
| 11 | 11 | <!-- erk. FIXME clean up and remove OptionTransfer.js. --> |
| 12 | - | |
| 12 | + | |
| 13 | 13 | <input type="hidden" name="userFinal" /> |
| 14 | - | |
| 15 | - | |
| 14 | + | |
| 15 | + | |
| 16 | 16 | <fieldset> |
| 17 | 17 | <legend>{i18n}Allocate User to Role{/i18n}</legend> |
| 18 | 18 | <p class="descriptiveText">{i18n} |
| ... | ... | @@ -53,11 +53,11 @@ Use the Ctrl key to multi-select user names.{/i18n}</p> |
| 53 | 53 | </tr> |
| 54 | 54 | <tr> |
| 55 | 55 | <td><label for="ug-filter">{i18n}Filter{/i18n}</label> |
| 56 | - <input name="filterUG" id="ug-filter" onkeyup="optGroup.sortSelectMatch(userSelect, this.value)" onchange="optGroup.sortSelectMatch(groupSelect, this.value)" type="text"> | |
| 56 | + <input name="filterUG" id="ug-filter" onkeyup="var x = this.value; if(x.length > 2) optGroup.sortSelectMatch(userSelect, x);" type="text"> | |
| 57 | 57 | </td> |
| 58 | 58 | <td> </td> |
| 59 | 59 | <td><label for="og-filter">{i18n}Filter{/i18n}</label> |
| 60 | - <input name="filterOG" id="og-filter" onkeyup="optGroup.sortSelectMatch(chosenUsers, this.value)" onchange="optGroup.sortSelectMatch(chosenGroups, this.value)" type="text"> | |
| 60 | + <input name="filterOG" id="og-filter" onkeyup="var x = this.value; if(x.length > 2) optGroup.sortSelectMatch(chosenUsers, x);" type="text"> | |
| 61 | 61 | </td> |
| 62 | 62 | </tr> |
| 63 | 63 | </tbody></table> | ... | ... |