mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
AJAX tag picker fix for when all tags removed. Also layout fixes for Safari and IE6
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8043 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -140,7 +140,11 @@ public abstract class BaseAjaxItemPicker extends UIInput
|
|||||||
Map requestMap = context.getExternalContext().getRequestParameterMap();
|
Map requestMap = context.getExternalContext().getRequestParameterMap();
|
||||||
String fieldId = getHiddenFieldName();
|
String fieldId = getHiddenFieldName();
|
||||||
String value = (String)requestMap.get(fieldId);
|
String value = (String)requestMap.get(fieldId);
|
||||||
if (value != null && value.length() != 0)
|
if (value.equals("empty"))
|
||||||
|
{
|
||||||
|
this.setSubmittedValue(new String("empty"));
|
||||||
|
}
|
||||||
|
else if (value != null && value.length() != 0)
|
||||||
{
|
{
|
||||||
if (getSingleSelect() == true)
|
if (getSingleSelect() == true)
|
||||||
{
|
{
|
||||||
|
@@ -112,12 +112,17 @@ public class UIAjaxTagPicker extends BaseAjaxItemPicker
|
|||||||
submitted = (List<NodeRef>)getSubmittedValue();
|
submitted = (List<NodeRef>)getSubmittedValue();
|
||||||
if (submitted == null)
|
if (submitted == null)
|
||||||
{
|
{
|
||||||
submitted = (List<NodeRef>)getValue();
|
Object objSubmitted = getValue();
|
||||||
}
|
|
||||||
// special case to submit empty lists on multi-select values
|
// special case to submit empty lists on multi-select values
|
||||||
else if (submitted.equals("empty"))
|
if ((objSubmitted != null) && (objSubmitted.toString().equals("empty")))
|
||||||
{
|
{
|
||||||
submitted = null;
|
submitted = null;
|
||||||
|
this.setValue(null);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
submitted = (List<NodeRef>)getValue();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (submitted != null)
|
if (submitted != null)
|
||||||
|
@@ -97,6 +97,7 @@ div.pickerAjaxWait
|
|||||||
{
|
{
|
||||||
float: left;
|
float: left;
|
||||||
border-bottom: 1px solid #b2b2b2;
|
border-bottom: 1px solid #b2b2b2;
|
||||||
|
width: 292px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pickerNavControls a img, .pickerNavControls input
|
.pickerNavControls a img, .pickerNavControls input
|
||||||
@@ -224,6 +225,7 @@ div.pickerNavBreadcrumbItem
|
|||||||
|
|
||||||
.pickerAddTagLinkContainer
|
.pickerAddTagLinkContainer
|
||||||
{
|
{
|
||||||
|
float: left;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
margin: 3px 0px;
|
margin: 3px 0px;
|
||||||
}
|
}
|
||||||
@@ -231,6 +233,7 @@ div.pickerNavBreadcrumbItem
|
|||||||
.pickerAddTagFormContainer
|
.pickerAddTagFormContainer
|
||||||
{
|
{
|
||||||
display: none;
|
display: none;
|
||||||
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pickerAddTagBox
|
.pickerAddTagBox
|
||||||
|
Reference in New Issue
Block a user