mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.1 to HEAD
12950: JAWS-11 - Integrate OpenOffice addin contribution (webscripts only) ETHREEOH-991 - Window without scroll bars is opened when we click "Manage" button on "Task details" screen(Microsoft Office Add-in) ETHREEOH-994 - Incorrect work when we try to open document by cliking on its version number on View Details tab(Microsoft Office Add-in) ETHREEOH-988 - Incorrect work of Search Alfresco tab(Microsoft Office Add-in) 12951: ETHREEOH-1010 - IE window was not closed when we click "Save Changes" button on "Manage Task" page(Office Add-in) 12952: JAWS-226 - Support Office 2007 Transformations 12953: ALFCOM-2490 - MS Office 2007 documents can't be previewed git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13532 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
*/
|
||||
var OfficeSearch =
|
||||
{
|
||||
MIN_LENGTH: 3,
|
||||
|
||||
init: function()
|
||||
{
|
||||
$('searchText').addEvent('keydown', function(event)
|
||||
@@ -16,6 +18,8 @@ var OfficeSearch =
|
||||
});
|
||||
|
||||
$('itemsFound').innerHTML = "Results Shown Below";
|
||||
|
||||
$('searchText').focus();
|
||||
},
|
||||
|
||||
itemsFound: function(shownResults, totalResults)
|
||||
@@ -39,11 +43,16 @@ var OfficeSearch =
|
||||
/* AJAX call to perform server-side search */
|
||||
runSearch: function(useTemplate, argPath)
|
||||
{
|
||||
OfficeAddin.showStatusText("Searching...", "ajax_anim.gif", false);
|
||||
|
||||
var searchString = $('searchText').value;
|
||||
var maxResults = $('maxResults').value;
|
||||
|
||||
if (searchString.length < OfficeSearch.MIN_LENGTH)
|
||||
{
|
||||
OfficeAddin.showStatusText("Minimum " + OfficeSearch.MIN_LENGTH + " characters.", "info.gif", true);
|
||||
return;
|
||||
}
|
||||
|
||||
OfficeAddin.showStatusText("Searching...", "ajax_anim.gif", false);
|
||||
var actionURL = useTemplate + argPath + "&search=" + encodeURIComponent(searchString) + "&maxresults=" + maxResults;
|
||||
var myAjax = new Ajax(actionURL, {
|
||||
method: 'get',
|
||||
|
Reference in New Issue
Block a user