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:
@@ -34,7 +34,12 @@ var OfficeNavigation =
|
||||
var toggles = $$('.toggle');
|
||||
|
||||
// Animation
|
||||
var fxPanel = new Fx.Elements(panels, {wait: false, duration: OfficeNavigation.ANIM_LENGTH, transition: Fx.Transitions.Back.easeInOut});
|
||||
var fxPanel = new Fx.Elements(panels,
|
||||
{
|
||||
wait: false,
|
||||
duration: OfficeNavigation.ANIM_LENGTH,
|
||||
transition: Fx.Transitions.Back.easeInOut
|
||||
});
|
||||
|
||||
panels.each(function(panel, i)
|
||||
{
|
||||
@@ -183,9 +188,13 @@ var OfficeNavigation =
|
||||
actionURL += "&st=" + encodeURIComponent(spaceTitle);
|
||||
actionURL += "&sd=" + encodeURIComponent(spaceDescription);
|
||||
actionURL += "&t=" + encodeURIComponent(spaceTemplate);
|
||||
var myAjax = new Ajax(actionURL, {
|
||||
var myAjax = new Ajax(actionURL,
|
||||
{
|
||||
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'
|
||||
},
|
||||
onComplete: function(textResponse, xmlResponse)
|
||||
{
|
||||
// Remove any trailing hash
|
||||
@@ -206,16 +215,14 @@ var OfficeNavigation =
|
||||
|
||||
saveToAlfresco: function(currentPath)
|
||||
{
|
||||
// Does the current doc have an extension?
|
||||
if (!window.external.docHasExtension())
|
||||
// Does the current doc have an extension? - async request
|
||||
ExternalComponent.docHasExtension(function()
|
||||
{
|
||||
// No - we need to ask for a filename
|
||||
OfficeNavigation.showSaveFilenamePanel(currentPath);
|
||||
}
|
||||
else
|
||||
ExternalComponent.saveToAlfresco(currentPath)
|
||||
}, function()
|
||||
{
|
||||
window.external.saveToAlfresco(currentPath);
|
||||
}
|
||||
OfficeNavigation.showSaveFilenamePanel(currentPath)
|
||||
});
|
||||
},
|
||||
|
||||
showSaveFilenamePanel: function(currentPath)
|
||||
@@ -291,7 +298,7 @@ var OfficeNavigation =
|
||||
|
||||
if (!cancelSave)
|
||||
{
|
||||
window.external.saveToAlfrescoAs(currentPath, filename);
|
||||
ExternalComponent.saveToAlfrescoAs(currentPath, filename);
|
||||
}
|
||||
}
|
||||
OfficeNavigation.saveCancel();
|
||||
|
Reference in New Issue
Block a user