mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- fixed illegal character use in forum article names
- fixed navigation issue with editing rules - added links to details pages in forums area - you can no longer create spaces, forums or topics with illegal characters in the name git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2745 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -26,36 +26,14 @@
|
||||
|
||||
<r:page titleId="title_create_forums">
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
|
||||
window.onload = pageLoaded;
|
||||
|
||||
function pageLoaded()
|
||||
{
|
||||
document.getElementById("create-forums:name").focus();
|
||||
checkButtonState();
|
||||
}
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("create-forums:name").value.length == 0 )
|
||||
{
|
||||
document.getElementById("create-forums:ok-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("create-forums:ok-button").disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
<script type="text/javascript" src="<%=request.getContextPath()%>/scripts/validation.js"> </script>
|
||||
|
||||
<f:view>
|
||||
|
||||
<%-- load a bundle of properties with I18N strings --%>
|
||||
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
|
||||
|
||||
<h:form acceptCharset="UTF-8" id="create-forums">
|
||||
<h:form acceptCharset="UTF-8" id="create-forums" onsubmit="return validate();">
|
||||
|
||||
<%-- Main outer table --%>
|
||||
<table cellspacing="0" cellpadding="2">
|
||||
@@ -168,7 +146,8 @@
|
||||
<tr>
|
||||
<td align="center">
|
||||
<h:commandButton id="ok-button" value="#{msg.create_forums}" action="#{CreateForumsDialog.finish}"
|
||||
styleClass="wizardButton" disabled="true" />
|
||||
styleClass="wizardButton" disabled="true"
|
||||
onclick="finishButtonPressed = true" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -199,6 +178,38 @@
|
||||
|
||||
</h:form>
|
||||
|
||||
<script language="JavaScript1.2">
|
||||
var finishButtonPressed = false;
|
||||
document.getElementById("create-forums:name").focus();
|
||||
|
||||
function checkButtonState()
|
||||
{
|
||||
if (document.getElementById("create-forums:name").value.length == 0 )
|
||||
{
|
||||
document.getElementById("create-forums:ok-button").disabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("create-forums:ok-button").disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
function validate()
|
||||
{
|
||||
if (finishButtonPressed)
|
||||
{
|
||||
finishButtonPressed = false;
|
||||
return validateName(document.getElementById("create-forums:name"),
|
||||
'<a:outputText value="#{msg.validation_invalid_character}" />',
|
||||
true);
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</f:view>
|
||||
|
||||
</r:page>
|
Reference in New Issue
Block a user