mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.1 to HEAD
13867: Fix for ETHREEOH-986 - long names in Explorer details view show correct width in FF browser 13869: Fixes for ETHREEOH-1387 and ETHREEOH-1390 13872: Fix for issue where custom-web-framework-application-context should be optional in the web.xml for web-framework project. 13909: Fix for ETHREEOH-1684 13910: Fix for ETHREEOH-1266 14015: Fixes for ETHREEOH-1864 and ETHREEOH-1840 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -349,6 +349,15 @@ public class SubmitDialog extends BaseDialogBean
|
|||||||
|
|
||||||
String submitLabel = this.label;
|
String submitLabel = this.label;
|
||||||
String submitComment = this.comment;
|
String submitComment = this.comment;
|
||||||
|
// crop to maximum length
|
||||||
|
if (submitLabel != null && submitLabel.length() > 255)
|
||||||
|
{
|
||||||
|
submitLabel = submitLabel.substring(0, 255);
|
||||||
|
}
|
||||||
|
if (submitComment != null && submitComment.length() > 255)
|
||||||
|
{
|
||||||
|
submitComment = submitComment.substring(0, 255);
|
||||||
|
}
|
||||||
|
|
||||||
// note: always submit via workflow (if no workflow selected, then defaults to direct submit workflow)
|
// note: always submit via workflow (if no workflow selected, then defaults to direct submit workflow)
|
||||||
getSandboxService().submitListAssets(sbStoreId, relativePaths,
|
getSandboxService().submitListAssets(sbStoreId, relativePaths,
|
||||||
|
@@ -568,11 +568,11 @@ public final class Utils extends StringUtils
|
|||||||
if (alt != null)
|
if (alt != null)
|
||||||
{
|
{
|
||||||
alt = Utils.encode(alt);
|
alt = Utils.encode(alt);
|
||||||
buf.append(" alt='")
|
buf.append(" alt=\"")
|
||||||
.append(alt)
|
.append(alt)
|
||||||
.append("' title='")
|
.append("\" title=\"")
|
||||||
.append(alt)
|
.append(alt)
|
||||||
.append("'");
|
.append("\"");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -653,11 +653,11 @@ public final class Utils extends StringUtils
|
|||||||
if (alt != null)
|
if (alt != null)
|
||||||
{
|
{
|
||||||
alt = Utils.encode(alt);
|
alt = Utils.encode(alt);
|
||||||
buf.append(" alt='")
|
buf.append(" alt=\"")
|
||||||
.append(alt)
|
.append(alt)
|
||||||
.append("' title='")
|
.append("\" title=\"")
|
||||||
.append(alt)
|
.append(alt)
|
||||||
.append("'");
|
.append('"');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -270,9 +270,9 @@ public class ActionLinkRenderer extends BaseRenderer
|
|||||||
}
|
}
|
||||||
if (link.getTooltip() != null)
|
if (link.getTooltip() != null)
|
||||||
{
|
{
|
||||||
out.write(" title='");
|
out.write(" title=\"");
|
||||||
out.write(Utils.encode(link.getTooltip()));
|
out.write(Utils.encode(link.getTooltip()));
|
||||||
out.write("'");
|
out.write('"');
|
||||||
}
|
}
|
||||||
out.write('>');
|
out.write('>');
|
||||||
}
|
}
|
||||||
|
@@ -311,9 +311,9 @@ public class ImagePickerRadioRenderer extends BaseRenderer
|
|||||||
|
|
||||||
if (tooltip != null)
|
if (tooltip != null)
|
||||||
{
|
{
|
||||||
out.write(" title='");
|
out.write(" title=\"");
|
||||||
out.write(Utils.encode(tooltip));
|
out.write(Utils.encode(tooltip));
|
||||||
out.write("'");
|
out.write('"');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (onclick != null)
|
if (onclick != null)
|
||||||
@@ -323,11 +323,6 @@ public class ImagePickerRadioRenderer extends BaseRenderer
|
|||||||
out.write("'");
|
out.write("'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (item.isDisabled())
|
|
||||||
// {
|
|
||||||
// out.write(" disabled='true'");
|
|
||||||
// }
|
|
||||||
|
|
||||||
out.write(">");
|
out.write(">");
|
||||||
out.write("</td><td align='center'>");
|
out.write("</td><td align='center'>");
|
||||||
|
|
||||||
|
@@ -262,7 +262,7 @@
|
|||||||
</f:facet>
|
</f:facet>
|
||||||
|
|
||||||
<%-- Primary column for details view mode --%>
|
<%-- Primary column for details view mode --%>
|
||||||
<a:column id="col1" primary="true" width="200" style="padding:2px;text-align:left" rendered="#{BrowseBean.browseViewMode == 'details'}">
|
<a:column id="col1" primary="true" style="padding:2px;text-align:left" rendered="#{BrowseBean.browseViewMode == 'details'}">
|
||||||
<f:facet name="header">
|
<f:facet name="header">
|
||||||
<a:sortLink id="col1-sort" label="#{msg.name}" value="name" mode="case-insensitive" styleClass="header"/>
|
<a:sortLink id="col1-sort" label="#{msg.name}" value="name" mode="case-insensitive" styleClass="header"/>
|
||||||
</f:facet>
|
</f:facet>
|
||||||
@@ -409,7 +409,7 @@
|
|||||||
</f:facet>
|
</f:facet>
|
||||||
|
|
||||||
<%-- Primary column for details view mode --%>
|
<%-- Primary column for details view mode --%>
|
||||||
<a:column id="col10" primary="true" width="200" style="padding:2px;text-align:left" rendered="#{BrowseBean.browseViewMode == 'details'}">
|
<a:column id="col10" primary="true" style="padding:2px;text-align:left" rendered="#{BrowseBean.browseViewMode == 'details'}">
|
||||||
<f:facet name="header">
|
<f:facet name="header">
|
||||||
<a:sortLink id="col10-sort" label="#{msg.name}" value="name" mode="case-insensitive" styleClass="header"/>
|
<a:sortLink id="col10-sort" label="#{msg.name}" value="name" mode="case-insensitive" styleClass="header"/>
|
||||||
</f:facet>
|
</f:facet>
|
||||||
|
@@ -43,6 +43,6 @@
|
|||||||
|
|
||||||
<h:panelGrid id="grid-3" columns="2" cellpadding="2" cellspacing="2" style="margin-left:16px">
|
<h:panelGrid id="grid-3" columns="2" cellpadding="2" cellspacing="2" style="margin-left:16px">
|
||||||
<h:outputText id="msg-2" value=" #{msg.website_filename_match}" escape="false" />
|
<h:outputText id="msg-2" value=" #{msg.website_filename_match}" escape="false" />
|
||||||
<h:inputText id="in-1" value="#{DialogManager.bean.filenamePattern}" size="70" />
|
<h:inputText id="in-1" value="#{DialogManager.bean.filenamePattern}" maxlength="1024" size="70" />
|
||||||
</h:panelGrid>
|
</h:panelGrid>
|
||||||
</h:panelGroup>
|
</h:panelGroup>
|
@@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
<h:graphicImage value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
<h:graphicImage value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
||||||
<h:outputText value="#{msg.submit_snapshotlabel}:"/>
|
<h:outputText value="#{msg.submit_snapshotlabel}:"/>
|
||||||
<h:inputText id="label" value="#{DialogManager.bean.label}" maxlength="1024" size="35"
|
<h:inputText id="label" value="#{DialogManager.bean.label}" maxlength="255" size="35"
|
||||||
onkeyup="javascript:checkButtonState();" />
|
onkeyup="javascript:checkButtonState();" />
|
||||||
<h:graphicImage value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
<h:graphicImage value="/images/icons/required_field.gif" alt="#{msg.required_field}" />
|
||||||
<h:outputText value="#{msg.submit_comment}:"/>
|
<h:outputText value="#{msg.submit_comment}:"/>
|
||||||
|
@@ -209,7 +209,7 @@ function onlyDigits(e)
|
|||||||
var keychar = String.fromCharCode(keycode);
|
var keychar = String.fromCharCode(keycode);
|
||||||
var numcheck = /\d/;
|
var numcheck = /\d/;
|
||||||
var dialogForm = $('dialog');
|
var dialogForm = $('dialog');
|
||||||
if (dialogForm && keyCode == 13)
|
if (dialogForm && keycode == 13)
|
||||||
{
|
{
|
||||||
dialogForm.setProperty('onsubmit', 'return false;');
|
dialogForm.setProperty('onsubmit', 'return false;');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user