Merged V3.2 to HEAD

15504: ETHREOH-2447: My Content page localisation failing - Localization is provided for all the ftl and xml files in WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\portlets.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2009-10-14 10:50:14 +00:00
parent e13b3f6414
commit 051b54a53c
12 changed files with 179 additions and 58 deletions

View File

@@ -0,0 +1,83 @@
portlets.refresh=Refresh
portlets.button.ok=OK
portlets.button.cancel=Cancel
portlets.error.data_currently_unavailable=Sorry, data currently unavailable.
portlets.preview_currently_unavailable=Sorry, preview currently unavailable.
portlets.message.showing=Showing
portlets.message.items=item(s)
portlets.message.showing_items=Showing {0} items
portlets.doclist.all_items=All Items
portlets.doclist.word_documents=Word Documents
portlets.doclist.html_documents=HTML Documents
portlets.doclist.pdf_documents=PDF Documents
portlets.doclist.recently_modified=Recently Modified
portlets.panel.description=Description
portlets.panel.modified=Modified
portlets.panel.modified_by=Modified By
portlets.panel.created=Created
portlets.panel.created_by=Created By
portlets.panel.size=Size
portlets.panel.kb=KB
portlets.myspaces.create_space=Create Space
portlets.myspaces.create_space.title=Create a new Space
portlets.myspaces.upload=Upload
portlets.myspaces.upload.title=Upload a new document
portlets.myspaces.name=name
portlets.myspaces.title=title
portlets.myspaces.description=Description
portlets.myspaces.all_items=All Items
portlets.myspaces.spaces=Spaces
portlets.myspaces.documents=Documents
portlets.myspaces.my_items=My Items
portlets.myspaces.recently_modified=Recently Modified
portlets.mywebfiles.showing_count_files_in_count_web_projects=Showing {0} file(s) in {1} web project(s)
portlets.mywebfiles.view_web_project=View Web Project
portlets.mywebfiles.my_modified_items=My Modified Items
portlets.mywebfiles.edit=Edit
portlets.mywebfiles.no_items_modified=No items modified
portlets.mywebforms.view_web_project=View Web Project
portlets.mywebforms.showing_count_forms_in_count_web_projects=Showing {0} forms_in {1} web_projects
portlets.mytasks.tasks_to_do=Tasks to do
portlets.mytasks.due_today=Due Today
portlets.mytasks.next_7_days=Next 7 days
portlets.mytasks.no_due_date=No due date
portlets.mytasks.overdue=Overdue
portlets.mytasks.showing_overdue=overdue
portlets.mytasks.showing_task=task(s)
portlets.mytasks.showing_due_today=due today
portlets.mytasks.showing_due_next_week=due next week
portlets.mytasks.showing_with_no_due_date_set=with no due date set
portlets.mytaskspanel.status=Status
portlets.mytaskspanel.priority=Priority
portlets.mytaskspanel.start_date=Start Date
portlets.mytaskspanel.complete=Complete
portlets.mytaskspanel.manage_task=Manage Task
portlets.mytaskspanel.workflow_action=Workflow action
portlets.mytaskspanel.workflow_complited=completed
portlets.checkin.item_working_copy_of_name_has_been_checked_in=Item \\\"Working Copy of {0}\\\" has been checked in.
portlets.checkout.working_copy_for_the_checked_out=A working copy for the checked out item \\\"Working Copy of {0}\\\" has been created.
task_summary_panel.close=Close
task_summary_panel.type=Type
task_summary_panel.name=Name
task_summary_panel.start_date=Start Date
task_summary_panel.due_date=Due Date
task_summary_panel.none=None
task_summary_panel.priority=Priority
task_summary_panel.percent_completed=Percent Completed
task_summary_panel.status=status
task_summary_panel.completed=Completed
task_summary_panel.yes=Yes
task_summary_panel.no=No
task_resource_panel.no_task_resources=No task resources

View File

@@ -227,6 +227,7 @@ view_details=View Details
view_details_file=View Details for file
change_details=Change Details
update=Update
download=download
cut=Cut
copy=Copy
paste=Paste
@@ -310,6 +311,8 @@ checkin_this_file=Check in this file
cannot_delete_node_has_working_copy=Cannot delete file \"{0}\" as it has an associated working copy.
unknown=Unknown
picker_search_min=Please enter at least {0} characters to perform a search.
locked=Locked
no_task_resources=No task resources
# Properties
username=User Name
@@ -335,6 +338,8 @@ locale=Locale
quota=Quota
sizeCurrent=Usage
sizeQuota=Quota
start_date=Start Date
percent_completed=Percent Completed
# Repo permission display labels
# Note - these come from the server, the english translation is generally the same
@@ -350,6 +355,8 @@ ContentPublisher=Content Publisher
ContentContributor=Content Contributor
ContentReviewer=Content Reviewer
edit_details=Edit Details
# Actions
delete=Delete
edit=Edit
@@ -416,6 +423,7 @@ reply=Reply
edit_post=Edit Post
reply_to=Reply to
post_reply=Post Reply
view_content=View Content
# Login page message
login_details=Enter Login details
@@ -2096,3 +2104,15 @@ condition_composite_error=Composite Condition (ERROR)
component_property=Property
component_value=Value
document_list_title=Document List
my_spaces_list_title=My Spaces List
my_tasks_title=My Tasks
my_web_forms_title=My Web Forms
my_web_files_title=My Web Files
document_list_desc=Document List WebScript
my_spaces_list_desc=My Spaces WebScript
my_tasks_desc=My Tasks WebScript
my_web_forms_desc=My Web Forms WebScript
my_web_files_desc=My Web Files WebScript

View File

@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!-- I18N -->
<bean id="portletsResourceBundles" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
<property name="resourceBundles">
<list>
<value>alfresco.messages.portlets</value>
</list>
</property>
</bean>
</beans>

View File

@@ -25,33 +25,33 @@
<tr>
<#assign navurl='/navigate/showDocDetails/' + node.nodeRef.storeRef.protocol + '/' + node.nodeRef.storeRef.identifier + '/' + node.nodeRef.id>
<#if node.isLocked>
<td class="docAction docActionCheckout docActionLocked">(Locked)</td>
<td class="docAction docActionCheckout docActionLocked">(${msg("locked")})</td>
<#elseif hasAspect(node, "cm:workingcopy") == 1>
<td class="docAction docActionCheckin" <#if node.hasPermission("CheckIn")>onclick='event.cancelBubble=true;MyDocs.checkinItem("${node.name}", "${node.nodeRef}");'</#if>>Check In</td>
<td class="docAction docActionCheckin" <#if node.hasPermission("CheckIn")>onclick='event.cancelBubble=true;MyDocs.checkinItem("${msg("portlets.checkin.item_working_copy_of_name_has_been_checked_in", node.name)}", "${node.nodeRef}");'</#if>>${msg("checkin")}</td>
<#else>
<td class="docAction docActionCheckout" <#if node.hasPermission("CheckOut")>onclick='event.cancelBubble=true;MyDocs.checkoutItem("${node.name}", "${node.nodeRef}");'</#if>>Check Out</td>
<td class="docAction docActionCheckout" <#if node.hasPermission("CheckOut")>onclick='event.cancelBubble=true;MyDocs.checkoutItem("${msg("portlets.checkout.working_copy_for_the_checked_out", node.name)}", "${node.nodeRef}");'</#if>>${msg("checkout")}</td>
</#if>
<#if node.isLocked>
<td class="docAction docActionEditDetails docActionLocked">Edit Details</td>
<td class="docAction docActionEditDetails docActionLocked">${msg("edit_details")}</td>
<#else>
<td class="docAction docActionEditDetails" onclick="openWindowCallback('${url.context}/command/ui/editcontentprops?container=plain&amp;noderef=${node.nodeRef}', MyDocs.editDetailsCallback);">Edit Details</td>
<td class="docAction docActionEditDetails" onclick="openWindowCallback('${url.context}/command/ui/editcontentprops?container=plain&amp;noderef=${node.nodeRef}', MyDocs.editDetailsCallback);">${msg("edit_details")}</td>
</#if>
</tr>
<tr>
<#if node.isLocked>
<td class="docAction docActionUpdate docActionLocked">Update</td>
<td class="docAction docActionUpdate docActionLocked">${msg("update")}</td>
<#else>
<td class="docAction docActionUpdate" onclick="event.cancelBubble=true;MyDocs.updateItem(this, '${node.nodeRef}');">Update</td>
<td class="docAction docActionUpdate" onclick="event.cancelBubble=true;MyDocs.updateItem(this, '${node.nodeRef}');">${msg("update")}</td>
</#if>
<td class="docAction docActionViewContent" onclick="window.open('${url.context}${node.downloadUrl}', '_blank');">Download</td>
<td class="docAction docActionViewContent" onclick="window.open('${url.context}${node.downloadUrl}', '_blank');">${msg("download")}</td>
</tr>
<tr>
<#if node.isLocked>
<td class="docAction docActionDelete docActionLocked">Delete</td>
<td class="docAction docActionDelete docActionLocked">${msg("delete")}</td>
<#else>
<td class="docAction docActionDelete" <#if node.hasPermission("Delete")>onclick='event.cancelBubble=true;MyDocs.deleteItem("${node.name}", "${node.nodeRef}");'</#if>>Delete</td>
<td class="docAction docActionDelete" <#if node.hasPermission("Delete")>onclick='event.cancelBubble=true;MyDocs.deleteItem("${node.name}", "${node.nodeRef}");'</#if>>${msg("delete")}</td>
</#if>
<td class="docAction docActionMoreActions" onclick="window.open('${url.context}${navurl}', '_blank');">More Actions...</td>
<td class="docAction docActionMoreActions" onclick="window.open('${url.context}${navurl}', '_blank');">${msg("more_actions")}...</td>
</tr>
</table>
</td>

View File

@@ -22,7 +22,7 @@
</#if>
</#list>
<#else>
<div style="padding:2px" class="spacesNoItems">No items to display</div>
<div style="padding:2px" class="spacesNoItems">${msg("no_items")}</div>
</#if>
</#if>
</div>
@@ -34,41 +34,41 @@
<#if node.isDocument>
<tr>
<#if node.isLocked>
<td class="spaceAction docActionCheckout docActionLocked">(Locked)</td>
<td class="spaceAction docActionCheckout docActionLocked">(${msg("locked")})</td>
<#elseif hasAspect(node, "cm:workingcopy") == 1>
<td class="spaceAction docActionCheckin" <#if node.hasPermission("CheckIn")>onclick='event.cancelBubble=true;MySpaces.checkinItem("${node.name}", "${node.nodeRef}");'</#if>>Check In</td>
<td class="spaceAction docActionCheckin" <#if node.hasPermission("CheckIn")>onclick='event.cancelBubble=true;MySpaces.checkinItem("${msg("portlets.checkin.item_working_copy_of_name_has_been_checked_in", node.name)}", "${node.nodeRef}");'</#if>>${msg("checkin")}</td>
<#else>
<td class="spaceAction docActionCheckout" <#if node.hasPermission("CheckOut")>onclick='event.cancelBubble=true;MySpaces.checkoutItem("${node.name}", "${node.nodeRef}");'</#if>>Check Out</td>
<td class="spaceAction docActionCheckout" <#if node.hasPermission("CheckOut")>onclick='event.cancelBubble=true;MySpaces.checkoutItem("${msg("portlets.checkout.working_copy_for_the_checked_out", node.name)}", "${node.nodeRef}");'</#if>>${msg("checkout")}</td>
</#if>
<#if node.isLocked>
<td class="spaceAction docActionEditDetails docActionLocked">Edit Details</td>
<td class="spaceAction docActionEditDetails docActionLocked">${msg("edit_details")}</td>
<#else>
<td class="spaceAction docActionEditDetails" onclick="openWindowCallback('${url.context}/command/ui/editcontentprops?container=plain&amp;noderef=${node.nodeRef}', MySpaces.editDetailsCallback);">Edit Details</td>
<td class="spaceAction docActionEditDetails" onclick="openWindowCallback('${url.context}/command/ui/editcontentprops?container=plain&amp;noderef=${node.nodeRef}', MySpaces.editDetailsCallback);">${msg("edit_details")}</td>
</#if>
</tr>
<tr>
<#if node.isLocked>
<td class="spaceAction docActionUpdate docActionLocked">Update</td>
<td class="spaceAction docActionUpdate docActionLocked">${msg("update")}</td>
<#else>
<td class="spaceAction docActionUpdate" onclick="event.cancelBubble=true;MySpaces.updateItem(this, '${node.nodeRef}');">Update</td>
<td class="spaceAction docActionUpdate" onclick="event.cancelBubble=true;MySpaces.updateItem(this, '${node.nodeRef}');">${msg("update")}</td>
</#if>
<td class="spaceAction docActionViewContent" onclick="window.open('${url.context}${node.downloadUrl}', '_blank');">View Content</td>
<td class="spaceAction docActionViewContent" onclick="window.open('${url.context}${node.downloadUrl}', '_blank');">${msg("view_content")}</td>
</tr>
<tr>
<#if node.isLocked>
<td class="spaceAction docActionDelete docActionLocked">Delete</td>
<td class="spaceAction docActionDelete docActionLocked">${msg("delete")}</td>
<#else>
<td class="spaceAction docActionDelete" <#if node.hasPermission("Delete")>onclick='event.cancelBubble=true;MySpaces.deleteItem("${node.name}", "${node.nodeRef}");'</#if>>Delete</td>
<td class="spaceAction docActionDelete" <#if node.hasPermission("Delete")>onclick='event.cancelBubble=true;MySpaces.deleteItem("${node.name}", "${node.nodeRef}");'</#if>>${msg("delete")}</td>
</#if>
<td class="spaceAction docActionMoreActions" onclick="window.open('${url.context}${navurl}', '_blank');">More Actions...</td>
<td class="spaceAction docActionMoreActions" onclick="window.open('${url.context}${navurl}', '_blank');">${msg("more_actions")}...</td>
</tr>
<#else>
<tr>
<td class="spaceAction docActionEditDetails" onclick="window.open('${url.context}/command/ui/editcontentprops?container=plain&amp;noderef=${node.nodeRef}', '_blank');">Edit Details</td>
<td class="spaceAction spaceActionDelete" <#if node.hasPermission("Delete")>onclick='event.cancelBubble=true;MySpaces.deleteItem("${node.name}", "${node.nodeRef}");'</#if>>Delete</td>
<td class="spaceAction docActionEditDetails" onclick="window.open('${url.context}/command/ui/editcontentprops?container=plain&amp;noderef=${node.nodeRef}', '_blank');">${msg("edit_details")}</td>
<td class="spaceAction spaceActionDelete" <#if node.hasPermission("Delete")>onclick='event.cancelBubble=true;MySpaces.deleteItem("${node.name}", "${node.nodeRef}");'</#if>>${msg("delete")}</td>
</tr>
<tr>
<td class="spaceAction docActionMoreActions" onclick="window.open('${url.context}${navurl}', '_blank');">More Actions...</td>
<td class="spaceAction docActionMoreActions" onclick="window.open('${url.context}${navurl}', '_blank');">${msg("more_actions")}...</td>
<td></td>
</tr>
</#if>

View File

@@ -13,8 +13,8 @@
<#assign navurl="/navigate/showSpaceDetails/">
</#if>
<#assign navurl=navurl + node.nodeRef.storeRef.protocol + '/' + node.nodeRef.storeRef.identifier + '/' + node.nodeRef.id>
<td width=24><center><a href='${url.context}${navurl}' target="new"><img src='${url.context}/images/icons/View_details.gif' style='cursor:pointer' width=12 height=16 border=0 title="Details" alt="Details"></a></center></td>
<td width=14 align=right><img src='${url.context}/images/icons/close_panel.gif' onclick="<#if isVideo>if (document.all) document.getElementById('${node.id}_player').controls.stop();</#if>AlfNodeInfoMgr.close('${node.nodeRef}');" style='cursor:pointer' width=14 height=14 border=0 title="Close" alt="Close"></td>
<td width=24><center><a href='${url.context}${navurl}' target="new"><img src='${url.context}/images/icons/View_details.gif' style='cursor:pointer' width=12 height=16 border=0 title='${msg("details")}' alt='${msg("details")}'></a></center></td>
<td width=14 align=right><img src='${url.context}/images/icons/close_panel.gif' onclick="<#if isVideo>if (document.all) document.getElementById('${node.id}_player').controls.stop();</#if>AlfNodeInfoMgr.close('${node.nodeRef}');" style='cursor:pointer' width=14 height=14 border=0 title='${msg("close")}' alt='${msg("close")}'></td>
</tr>
</table>
</td>
@@ -49,23 +49,23 @@
<td valign='top'>
<table cellpadding='2' cellspacing='0'>
<#if node.properties.title?exists>
<tr><td>&nbsp;Title:</td><td>${node.properties.title?html}</td></tr>
<tr><td>&nbsp;${msg("title")}:</td><td>${node.properties.title?html}</td></tr>
</#if>
<#if node.properties.description?exists>
<tr><td>&nbsp;Description:</td><td>${node.properties.description?html}</td></tr>
<tr><td>&nbsp;${msg("description")}:</td><td>${node.properties.description?html}</td></tr>
</#if>
<tr><td>&nbsp;Created:</td><td>${node.properties.created?datetime}</td></tr>
<tr><td>&nbsp;Creator:</td><td>${node.properties.creator}</td></tr>
<tr><td>&nbsp;Modified:</td><td>${node.properties.modified?datetime}</td></tr>
<tr><td>&nbsp;Modifier:</td><td>${node.properties.modifier}</td></tr>
<tr><td>&nbsp;${msg("created")}:</td><td>${node.properties.created?datetime}</td></tr>
<tr><td>&nbsp;${msg("creator")}:</td><td>${node.properties.creator}</td></tr>
<tr><td>&nbsp;${msg("modified")}:</td><td>${node.properties.modified?datetime}</td></tr>
<tr><td>&nbsp;${msg("modifier")}:</td><td>${node.properties.modifier}</td></tr>
<#if node.properties.owner?exists>
<tr><td>&nbsp;Owner:</td><td>${node.properties.owner}</td></tr>
<tr><td>&nbsp;${msg("owner")}:</td><td>${node.properties.owner}</td></tr>
</#if>
<#if node.properties.author?exists>
<tr><td>&nbsp;Author:</td><td>${node.properties.author?html}</td></tr>
<tr><td>&nbsp;${msg("author")}:</td><td>${node.properties.author?html}</td></tr>
</#if>
<#if node.isDocument>
<tr><td>&nbsp;Size:</td><td>${(node.size / 1000)?string("0.##")} KB</td></tr>
<tr><td>&nbsp;${msg("size")}:</td><td>${(node.size / 1000)?string("0.##")} ${msg("kilobyte")}</td></tr>
</#if>
</table>
</td>
@@ -75,7 +75,7 @@
<#assign c=cropContent(node.properties.content, 512)>
<#if c?length != 0>
<tr>
<td colspan='2'>Preview:</td>
<td colspan='2'>${msg("snapshot_preview")}:</td>
</tr>
<tr>
<td colspan='2'>

View File

@@ -16,6 +16,6 @@
</tr>
</#list>
<#else>
<tr><td><span class="resourceLink">No task resources</span></td></tr>
<tr><td><span class="resourceLink">${msg("task_resource_panel.no_task_resources")}</span></td></tr>
</#if>
</table>

View File

@@ -5,7 +5,7 @@
<table cellspacing='0' cellpadding='0' width='100%' style='cursor:move' id='dragable'>
<tr>
<td class='mainSubTitle'>${task.description?html}</td>
<td width=14 align=right><img src='${url.context}/images/icons/close_panel.gif' onclick="TaskInfoMgr.close('${task.id}');" style='cursor:pointer' width=14 height=14 border=0 title="Close" alt="Close"></td>
<td width=14 align=right><img src='${url.context}/images/icons/close_panel.gif' onclick="TaskInfoMgr.close('${task.id}');" style='cursor:pointer' width=14 height=14 border=0 title='${msg("task_summary_panel.close")}' alt='${msg("task_summary_panel.close")}'></td>
</tr>
</table>
</td>
@@ -14,20 +14,20 @@
<tr>
<td valign='top'>
<table cellpadding='2' cellspacing='0' class='taskPopupData'>
<tr><td>Type:</td><td>${task.type?html}</td></tr>
<tr><td>Name:</td><td>${task.name?html}</td></tr>
<tr><td>Start Date:</td><td>${task.startDate?date}</td></tr>
<tr><td>Due Date:</td><td>
<tr><td>${msg("task_summary_panel.type")}:</td><td>${task.type?html}</td></tr>
<tr><td>${msg("task_summary_panel.name")}:</td><td>${task.name?html}</td></tr>
<tr><td>${msg("task_summary_panel.start_date")}:</td><td>${task.startDate?date}</td></tr>
<tr><td>${msg("task_summary_panel.due_date")}:</td><td>
<#if task.properties["bpm:dueDate"]?exists>
${task.properties["bpm:dueDate"]?date}
<#else>
<i>None</i>
<i>${msg("task_summary_panel.none")}</i>
</#if>
</td></tr>
<tr><td>Priority:</td><td>${task.properties["bpm:priority"]}</td>
<tr><td>Percent Completed:</td><td>${task.properties["bpm:percentComplete"]}</td>
<tr><td>Status:</td><td>${task.properties["bpm:status"]}</td>
<tr><td>Completed:</td><td>${task.isCompleted?string("Yes", "No")}</td>
<tr><td>${msg("task_summary_panel.priority")}:</td><td>${task.properties["bpm:priority"]}</td>
<tr><td>${msg("task_summary_panel.percent_completed")}:</td><td>${task.properties["bpm:percentComplete"]}</td>
<tr><td>${msg("task_summary_panel.status")}:</td><td>${task.properties["bpm:status"]}</td>
<tr><td>${msg("task_summary_panel.completed")}:</td><td>${task.isCompleted?string('${msg("task_summary_panel.yes")}', '${msg("task_summary_panel.no")}')}</td>
</table>
</td>
</tr>

View File

@@ -33,6 +33,7 @@ import java.util.Map;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import org.alfresco.repo.template.I18NMessageMethod;
import org.alfresco.repo.template.Workflow;
import org.alfresco.repo.web.scripts.FileTypeImageUtils;
import org.alfresco.service.cmr.repository.FileTypeImageSize;
@@ -143,6 +144,7 @@ public class TaskInfoBean implements Serializable
// create template api methods and objects
model.put("date", new Date());
model.put("msg", new I18NMessageMethod());
model.put("url", new BaseTemplateContentServlet.URLHelper(context));
model.put("task", new Workflow.WorkflowTaskItem(
Repository.getServiceRegistry(context),

View File

@@ -45,7 +45,7 @@ var MyDocs = {
failure: function(response)
{
// display the error
$('docPanel').setHTML("Sorry, data currently unavailable.");
$('docPanel').setHTML($('displayTheError').innerHTML);
// hide the ajax wait panel and show the main doc panel
$('docPanelOverlayAjax').setStyle('display', 'none');
@@ -286,7 +286,7 @@ var MyDocs = {
},
failure: function(response)
{
resource.innerHTML = "Sorry, preview currently unavailable.";
resource.innerHTML = $('previewCurrentlyUnavailable').innerHTML;
},
argument: [resource]
},
@@ -534,7 +534,7 @@ var MyDocs = {
if (response.responseText.indexOf("OK:") == 0)
{
MyDocs.refreshList();
MyDocs.displayMessage("A working copy for the checked out item 'Working Copy of " + name + "' has been created.");
MyDocs.displayMessage(name);
}
else
{
@@ -569,7 +569,7 @@ var MyDocs = {
if (response.responseText.indexOf("OK:") == 0)
{
MyDocs.refreshList();
MyDocs.displayMessage("Item 'Working Copy of " + name + "' has been checked in.");
MyDocs.displayMessage(name);
}
else
{

View File

@@ -60,7 +60,7 @@ var MySpaces = {
failure: function(response)
{
// display the error
$('spacePanel').setHTML("Sorry, data currently unavailable.");
$('spacePanel').setHTML($('displayTheError').innerHTML);
// hide the ajax wait panel and show the main spaces panel
$('spacePanelOverlayAjax').setStyle('display', 'none');
@@ -302,7 +302,7 @@ var MySpaces = {
},
failure: function(response)
{
resource.innerHTML = "Sorry, preview currently unavailable.";
resource.innerHTML = $('previewCurrentlyUnavailable').innerHTML;
},
argument: [resource]
},
@@ -712,7 +712,7 @@ var MySpaces = {
if (response.responseText.indexOf("OK:") == 0)
{
MySpaces.refreshList();
MySpaces.displayMessage("A working copy for the checked out item 'Working Copy of " + name + "' has been created.");
MySpaces.displayMessage(name);
}
else
{
@@ -747,7 +747,7 @@ var MySpaces = {
if (response.responseText.indexOf("OK:") == 0)
{
MySpaces.refreshList();
MySpaces.displayMessage("Item 'Working Copy of " + name + "' has been checked in.");
MySpaces.displayMessage(name);
}
else
{

View File

@@ -30,7 +30,7 @@ var MyTasks = {
failure: function(response)
{
// display the error
$('taskPanel').setHTML("Sorry, data currently unavailable.");
$('taskPanel').setHTML($('displayTheError').innerHTML);
// hide the ajax wait panel and show the main task panel
$('taskPanelOverlay').setStyle('visibility', 'hidden');