Commit ebf08fad3cf5f2c08b7a5209d49f71eb7a7f07ba

Authored by Megan Watson
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
templates/ktcore/folder/roles_manageusers.smarty
@@ -2,17 +2,17 @@ @@ -2,17 +2,17 @@
2 2
3 {$context->oPage->requireJSResource('thirdpartyjs/OptionTransfer.js')} 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 <form action="{$smarty.server.PHP_SELF}" method="POST" id="userroleform"> 7 <form action="{$smarty.server.PHP_SELF}" method="POST" id="userroleform">
8 <input type="hidden" name="action" value="setRoleUsers" /> 8 <input type="hidden" name="action" value="setRoleUsers" />
9 <input type="hidden" name="allocation_id" value="{$edit_rolealloc->getId()}" /> 9 <input type="hidden" name="allocation_id" value="{$edit_rolealloc->getId()}" />
10 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" /> 10 <input type="hidden" name="fFolderId" value="{$context->oFolder->getId()}" />
11 <!-- erk. FIXME clean up and remove OptionTransfer.js. --> 11 <!-- erk. FIXME clean up and remove OptionTransfer.js. -->
12 - 12 +
13 <input type="hidden" name="userFinal" /> 13 <input type="hidden" name="userFinal" />
14 -  
15 - 14 +
  15 +
16 <fieldset> 16 <fieldset>
17 <legend>{i18n}Allocate User to Role{/i18n}</legend> 17 <legend>{i18n}Allocate User to Role{/i18n}</legend>
18 <p class="descriptiveText">{i18n} 18 <p class="descriptiveText">{i18n}
@@ -53,11 +53,11 @@ Use the Ctrl key to multi-select user names.{/i18n}&lt;/p&gt; @@ -53,11 +53,11 @@ Use the Ctrl key to multi-select user names.{/i18n}&lt;/p&gt;
53 </tr> 53 </tr>
54 <tr> 54 <tr>
55 <td><label for="ug-filter">{i18n}Filter{/i18n}</label> 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 </td> 57 </td>
58 <td>&nbsp;</td> 58 <td>&nbsp;</td>
59 <td><label for="og-filter">{i18n}Filter{/i18n}</label> 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 </td> 61 </td>
62 </tr> 62 </tr>
63 </tbody></table> 63 </tbody></table>