mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Fix for AWC-522:
- fixed to only enable the Users Search button when text is entered git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2409 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,6 +26,29 @@
|
||||
|
||||
<r:page titleId="title_users">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("users:search-text").focus();
|
||||
updateButtonState();
|
||||
}
|
||||
|
||||
function updateButtonState()
|
||||
{
|
||||
if (document.getElementById("users:search-text").value.length == 0)
|
||||
{
|
||||
document.getElementById("users:search-btn").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("users:search-btn").disabled = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
@@ -123,8 +146,8 @@
|
||||
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellowInner"); %>
|
||||
|
||||
<div style="padding: 6px;" />
|
||||
<h:inputText value="#{UsersBean.searchCriteria}" size="35" maxlength="1024" />
|
||||
<h:commandButton value="#{msg.search}" action="#{UsersBean.search}" />
|
||||
<h:inputText id="search-text" value="#{UsersBean.searchCriteria}" size="35" maxlength="1024" onkeyup="updateButtonState();" onchange="updateButtonState();" />
|
||||
<h:commandButton id="search-btn" value="#{msg.search}" action="#{UsersBean.search}" disabled="true" />
|
||||
<h:commandButton value="#{msg.show_all}" action="#{UsersBean.showAll}" />
|
||||
<div style="padding: 6px;" />
|
||||
|
||||
|
Reference in New Issue
Block a user