mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixes for accented character encoding for tagging with MSIE (forum-reported)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7656 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -49,7 +49,7 @@ var OfficeDocDetails =
|
|||||||
{
|
{
|
||||||
tag.addEvent('click', function(e)
|
tag.addEvent('click', function(e)
|
||||||
{
|
{
|
||||||
window.location.href = window.serviceContextPath + "/office/tags?p=" + window.queryObject.p + "&tag=" + tag.innerHTML;
|
window.location.href = window.serviceContextPath + "/office/tags?p=" + window.queryObject.p + "&tag=" + encodeURI(tag.innerHTML);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -70,13 +70,13 @@ var OfficeDocDetails =
|
|||||||
|
|
||||||
addTag: function(nodeId, tagName)
|
addTag: function(nodeId, tagName)
|
||||||
{
|
{
|
||||||
OfficeAddin.postAction(window.serviceContextPath + "/collaboration/tagActions", "add", nodeId, null, "t=" + tagName);
|
OfficeAddin.postAction(window.serviceContextPath + "/collaboration/tagActions", "add", nodeId, null, "t=" + encodeURI(tagName));
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
removeTag: function(nodeId, tagName)
|
removeTag: function(nodeId, tagName)
|
||||||
{
|
{
|
||||||
OfficeAddin.postAction(window.serviceContextPath + "/collaboration/tagActions", "remove", nodeId , null, "t=" + tagName);
|
OfficeAddin.postAction(window.serviceContextPath + "/collaboration/tagActions", "remove", nodeId , null, "t=" + encodeURI(tagName));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@@ -80,7 +80,7 @@ var OfficeTags =
|
|||||||
var maxResults = 100;
|
var maxResults = 100;
|
||||||
|
|
||||||
var args = OfficeTags.searchParams + "&type=tag";
|
var args = OfficeTags.searchParams + "&type=tag";
|
||||||
var actionURL = window.serviceContextPath + "/office/searchResults?p=" + args + "&search=" + tagName.replace(" ", "_x0020_") + "&maxresults=" + maxResults;
|
var actionURL = window.serviceContextPath + "/office/searchResults?p=" + args + "&search=" + encodeURI(tagName.replace(" ", "_x0020_")) + "&maxresults=" + maxResults;
|
||||||
var myAjax = new Ajax(actionURL, {
|
var myAjax = new Ajax(actionURL, {
|
||||||
method: 'get',
|
method: 'get',
|
||||||
headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'},
|
headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'},
|
||||||
|
Reference in New Issue
Block a user