diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/docActions.get.js b/config/alfresco/templates/webscripts/org/alfresco/office/docActions.get.js
index 9cd350e70d..f1637f45c4 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/docActions.get.js
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/docActions.get.js
@@ -152,7 +152,6 @@ else // Non document-based actions
catch(e)
{
resultString = "Action failed due to exception";
- resultString = e.toString();
}
}
model.resultString = resultString;
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl
index 37fb61a5c0..48e84d22e6 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/documentDetails.get.html.ftl
@@ -17,6 +17,9 @@
-<#if d.isDocument>
- <#if d.isLocked >
- <#elseif hasAspect(d, "cm:workingcopy") == 1>
+<#if d.isDocument>
+ <#if d.isLocked >
+ <#elseif hasAspect(d, "cm:workingcopy") == 1>
-
@@ -153,7 +156,7 @@
Check in the current document.
- <#else>
+ <#else>
-
@@ -161,7 +164,7 @@
Check out the current document to a working copy.
- #if>
+ #if>
-
@@ -169,6 +172,7 @@
Start Advanced Workflow for the current document.
+ <#if d.name?ends_with(".doc")>
-
@@ -176,6 +180,7 @@
Transform the current document to Adobe PDF format.
+ #if>
-
@@ -183,11 +188,16 @@
Open the document details in the Alfresco Web Client.
-
-
<#else>
- No actions available.
+
+
+
+ Save to Alfresco
+
+
Allows you to place the current document under Alfresco management.
+
#if>
+
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
index 3200e211f8..57b931325c 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/myAlfresco.get.html.ftl
@@ -18,6 +18,9 @@
My Alfresco
+
@@ -59,7 +62,10 @@
#if>
Modified: ${child.properties.modified?datetime} (${(child.size / 1024)?int}Kb)

+

+ <#if !child.name?ends_with(".pdf")>

+ #if>
#if>
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl
index 949aff325e..413c3f0eef 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.html.ftl
@@ -1,23 +1,29 @@
<#assign doc_actions="${url.serviceContext}/office/docActions">
<#if args.p?exists><#assign path=args.p><#else><#assign path="">#if>
-<#if args.n?exists><#assign node=args.n><#else><#assign node=companyhome>#if>
-<#-- resolve the path (from Company Home) into a node -->
-<#if path?starts_with("/Company Home")>
- <#if path?length=13>
- <#assign d=companyhome>
- <#elseif companyhome.childByNamePath[args.p[14..]]?exists>
- <#assign d=companyhome.childByNamePath[args.p[14..]]>
+<#if docWorkflow?exists>
+ <#assign d=docWorkflow>
+<#else>
+ <#-- resolve the path (from Company Home) into a node -->
+ <#if path?starts_with("/Company Home")>
+ <#if path?length=13>
+ <#assign d=companyhome>
+ <#elseif companyhome.childByNamePath[args.p[14..]]?exists>
+ <#assign d=companyhome.childByNamePath[args.p[14..]]>
+ <#else>
+ <#assign d=companyhome>
+ #if>
<#else>
<#assign d=companyhome>
#if>
-<#else>
- <#assign d=companyhome>
#if>
My Tasks
+
@@ -29,7 +35,7 @@

- 
+ 



diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.js b/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.js
index e69de29bb2..b6d7a40376 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.js
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/myTasks.get.js
@@ -0,0 +1,5 @@
+// Was a document passed-in for New Workflow?
+if ((args.wd) && (args.wd != ""))
+{
+ model.docWorkflow = search.findNode("workspace://SpacesStore/" + args.wd);
+}
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl
index 5d54f9f892..8b4f665bd9 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/navigation.get.html.ftl
@@ -9,13 +9,14 @@
Browse Spaces and Documents
+
-
-

@@ -156,6 +157,7 @@
<#else>
#if>
+
<#if !child.isLocked >
@@ -176,13 +178,13 @@
-<#if node.isDocument>
+<#if !node.isDocument>
-
Save to Alfresco
-
Allows you to place the current document under Alfresco management.
+
Save the document to the current Space.
#if>
<#if args.search?exists>
diff --git a/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl b/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
index a853dd08d9..3802155245 100644
--- a/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
+++ b/config/alfresco/templates/webscripts/org/alfresco/office/search.get.html.ftl
@@ -8,6 +8,9 @@
Browse Spaces and Documents
+
diff --git a/source/web/css/office.css b/source/web/css/office.css
index bc49d650a0..41f06ee6d0 100644
--- a/source/web/css/office.css
+++ b/source/web/css/office.css
@@ -31,7 +31,7 @@ TABLE, TR, TD {
ul {
margin: 0px;
list-style: none;
- padding: 2px 0px 0px 24px;
+ padding: 2px 0px 0px 2px;
}
input.button {
@@ -288,6 +288,9 @@ input.button {
height: 150px;
width: 282px;
}
+#documentActions ul {
+ padding: 2px 0px 0px 24px;
+}
#documentActions li a {
font-weight: bold;
margin: 0px 0px 0px -22px;
@@ -306,6 +309,9 @@ input.button {
height: 89px;
width: 282px;
}
+#documentActionsNavigation ul {
+ padding: 2px 0px 0px 24px;
+}
#documentActionsNavigation li a {
font-weight: bold;
margin: 0px 0px 0px -22px;
diff --git a/source/web/css/office_ie6.css b/source/web/css/office_ie6.css
new file mode 100644
index 0000000000..9cf6536fb2
--- /dev/null
+++ b/source/web/css/office_ie6.css
@@ -0,0 +1,40 @@
+.header {
+ padding: 5px 0px 0px 4px;
+ margin: 0px 0px 0px 0px;
+ height: 16px;
+}
+
+.toggle {
+ margin-top: 0px;
+ position: relative;
+ top: -2px;
+}
+
+.containerBig {
+ margin: 0px 4px 0px 2px;
+}
+.containerMedium {
+ margin: 0px 4px 0px 2px;
+}
+.containerSmall {
+ margin: 0px 4px 0px 2px;
+}
+
+.containerSearchResults {
+ margin: 0px 4px 0px 2px;
+}
+
+#currentSpaceInfo {
+ margin: 0px 4px 0px 2px;
+}
+
+#documentActions {
+ margin: 0px 4px 0px 2px;
+}
+
+#documentActionsNavigation {
+ margin: 0px 4px 0px 2px;
+}
+#documentActionsNavigation ul {
+ padding: 2px 0px 0px 24px;
+}
diff --git a/source/web/scripts/office/my_tasks.js b/source/web/scripts/office/my_tasks.js
index 2ebef4bc47..5aa4e1256b 100644
--- a/source/web/scripts/office/my_tasks.js
+++ b/source/web/scripts/office/my_tasks.js
@@ -159,10 +159,8 @@ var OfficeMyTasks =
{
// Remove any trailing hash
var href = window.location.href.replace("#", "")
- // Remove any previous "&st=" string
- href = href.replace(/[?&]st=([^&$]+)/g, "");
- // Remove any previous "&w=" string
- href = href.replace(/[?&]w=([^&$]+)/g, "");
+ // Remove any "st" and "w" parameters
+ href = OfficeAddin.removeParameters(href, "st|w");
// Optionally add a status string
if (successMessage != "")
{
@@ -209,10 +207,8 @@ var OfficeMyTasks =
{
// Remove any trailing hash
var href = window.location.href.replace("#", "")
- // Remove any previous "&st=" strings
- href = href.replace(/[?&]st=([^&$]+)/g, "");
- // Remove any previous "&w=" strings
- href = href.replace(/[?&]w=([^&$]+)/g, "");
+ // Remove any previous "st", "w" or "wd" parameters
+ href = OfficeAddin.removeParameters(href, "st|w|wd");
// Optionally add a status string
if (textResponse != "")
{
diff --git a/source/web/scripts/office/navigation.js b/source/web/scripts/office/navigation.js
index 21620eabd3..9bc5f98b48 100644
--- a/source/web/scripts/office/navigation.js
+++ b/source/web/scripts/office/navigation.js
@@ -175,10 +175,8 @@ var OfficeNavigation =
{
// Remove any trailing hash
var href = window.location.href.replace("#", "")
- // Remove any previous "&st=" strings
- href = href.replace(/[?&]st=([^&$]+)/g, "");
- // Remove any previous "&cc=" strings
- href = href.replace(/[?&]cc=([^&$]+)/g, "");
+ // Remove any "st" and "cc" parameters
+ href = OfficeAddin.removeParameters(href, "st|cc");
// Optionally add a status string
if (textResponse != "")
{
diff --git a/source/web/scripts/office/office_addin.js b/source/web/scripts/office/office_addin.js
index 87f1180dee..f745d2da42 100644
--- a/source/web/scripts/office/office_addin.js
+++ b/source/web/scripts/office/office_addin.js
@@ -3,7 +3,7 @@
*/
var OfficeAddin =
{
- ANIM_LENGTH: 300,
+ ANIM_LENGTH: 500,
STATUS_FADE: 10000,
LIST_DEF_HEIGHT: 204,
@@ -18,7 +18,8 @@ var OfficeAddin =
{
var objResponse = Json.evaluate(this.queryObject.st);
var imgSuccess = (objResponse.statusCode ? "action_successful.gif" : "action_failed.gif");
- OfficeAddin.showStatusText(objResponse.statusString, imgSuccess, true);
+ var colBackground = (objResponse.statusCode ? "#50ff50" : "#ff5050");
+ OfficeAddin.showStatusText(objResponse.statusString, imgSuccess, true, colBackground);
}
OfficeAddin.makeExternalLinks();
@@ -46,7 +47,7 @@ var OfficeAddin =
return obj;
},
- showStatusText: function(statusText, statusImage, fadeOut)
+ showStatusText: function(statusText, statusImage, fadeOut, colBackground)
{
var e = $("statusText");
if (statusImage)
@@ -74,7 +75,8 @@ var OfficeAddin =
OfficeAddin.hideStatusText.delay(OfficeAddin.STATUS_FADE);
}
}
- fx.start('#ffffcc', '#ffffff');
+ var colBackground = (colBackground == null) ? "#ffffcc" : colBackground;
+ fx.start(colBackground, "#ffffff");
}
},
@@ -105,8 +107,8 @@ var OfficeAddin =
{
// Remove any trailing hash
var href = window.location.href.replace("#", "")
- // Remove any previous "&st=" strings
- href = href.replace(/[?&]st=([^&$]+)/g, "");
+ // Remove any previous "st" parameters
+ href = OfficeAddin.removeParameters(href, "st");
// Optionally add a status string
if (textResponse != "")
{
@@ -134,6 +136,27 @@ var OfficeAddin =
}
return contextPath;
+ },
+
+ /* Removes params "param1|param2...|paramN" from a URL */
+ removeParameters: function(theUrl, theParams)
+ {
+ var regexp = new RegExp("[?&](" + theParams + ")=([^&$]+)", "g");
+ var url = theUrl.replace(regexp, "");
+
+ // Check that an href still contains a "?" after removing parameters
+ var pos = url.indexOf("?");
+ if (pos == -1)
+ {
+ // None found - do we have an "&" ?
+ pos = url.indexOf("&");
+ if (pos != -1)
+ {
+ // Yes - so replace the first one with a "?"
+ url = url.substring(0, pos) + "?" + url.substring(pos+1);
+ }
+ }
+ return url;
}
};