mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Office add-in updates. Part 2 of 2 (webscripts)
ALFCOM-2442, ALFCOM-2440, ALFCOM-597, ALFCOM-2145, ALFCOM-2768, ETHREEOH-1545, ALFCOM-2764, ALFCOM-2104, ETHREEOH-1532, ETHREEOH-543, ETHREEOH-1523, ETHREEOH-1516, ETHREEOH-1028 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14813 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,7 +25,7 @@ var OfficeSearch =
|
||||
itemsFound: function(shownResults, totalResults)
|
||||
{
|
||||
var strFound;
|
||||
if (totalResults == 0)
|
||||
if (totalResults === 0)
|
||||
{
|
||||
strFound = "No items found";
|
||||
}
|
||||
@@ -54,7 +54,8 @@ var OfficeSearch =
|
||||
|
||||
OfficeAddin.showStatusText("Searching...", "ajax_anim.gif", false);
|
||||
var actionURL = useTemplate + argPath + "&search=" + encodeURIComponent(searchString) + "&maxresults=" + maxResults;
|
||||
var myAjax = new Ajax(actionURL, {
|
||||
var myAjax = new Ajax(actionURL,
|
||||
{
|
||||
method: 'get',
|
||||
headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'},
|
||||
evalScripts: true,
|
||||
@@ -62,6 +63,13 @@ var OfficeSearch =
|
||||
{
|
||||
OfficeAddin.hideStatusText();
|
||||
$('searchResultsList').innerHTML = textResponse;
|
||||
/* Custom tooltips
|
||||
var myTips = new Tips($$(".toolTip"),
|
||||
{
|
||||
fixed: true,
|
||||
maxTitleChars: 50
|
||||
});
|
||||
*/
|
||||
}
|
||||
});
|
||||
myAjax.request();
|
||||
|
Reference in New Issue
Block a user