mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for AWC-1331 - Double clicking on actions in the document list portlet with LifeRay gives an exception.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6211 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -70,7 +70,9 @@
|
|||||||
<script>
|
<script>
|
||||||
MyDocs.ServiceContext="${url.serviceContext}";
|
MyDocs.ServiceContext="${url.serviceContext}";
|
||||||
MyDocs.Filter="${filter}";
|
MyDocs.Filter="${filter}";
|
||||||
|
<#if home?exists>
|
||||||
MyDocs.Home="${home.nodeRef}";
|
MyDocs.Home="${home.nodeRef}";
|
||||||
|
</#if>
|
||||||
MyDocs.Query="${query?replace("\"","\\\"")}";
|
MyDocs.Query="${query?replace("\"","\\\"")}";
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -5,6 +5,7 @@ var MyDocs = {
|
|||||||
DETAIL_MARGIN: 56,
|
DETAIL_MARGIN: 56,
|
||||||
TITLE_FONT_SIZE: 18,
|
TITLE_FONT_SIZE: 18,
|
||||||
RESOURCE_PANEL_HEIGHT: 150,
|
RESOURCE_PANEL_HEIGHT: 150,
|
||||||
|
OVERLAY_OPACITY: 0.8,
|
||||||
ServiceContext: null,
|
ServiceContext: null,
|
||||||
Filter: null,
|
Filter: null,
|
||||||
Home: null,
|
Home: null,
|
||||||
@@ -477,6 +478,8 @@ var MyDocs = {
|
|||||||
{
|
{
|
||||||
if (confirm("Are you sure you want to delete: " + name))
|
if (confirm("Are you sure you want to delete: " + name))
|
||||||
{
|
{
|
||||||
|
$("docPanelOverlay").setStyle('opacity', MyDocs.OVERLAY_OPACITY);
|
||||||
|
|
||||||
// ajax call to delete item
|
// ajax call to delete item
|
||||||
YAHOO.util.Connect.asyncRequest(
|
YAHOO.util.Connect.asyncRequest(
|
||||||
"POST",
|
"POST",
|
||||||
@@ -491,11 +494,13 @@ var MyDocs = {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error during delete of item: " + response.responseText);
|
alert("Error during delete of item: " + response.responseText);
|
||||||
|
$("docPanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(response)
|
failure: function(response)
|
||||||
{
|
{
|
||||||
alert("Error during delete of item: " + response.responseText);
|
alert("Error during delete of item: " + response.responseText);
|
||||||
|
$("docPanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noderef=" + noderef
|
"noderef=" + noderef
|
||||||
@@ -508,6 +513,8 @@ var MyDocs = {
|
|||||||
*/
|
*/
|
||||||
checkoutItem: function(name, noderef)
|
checkoutItem: function(name, noderef)
|
||||||
{
|
{
|
||||||
|
$("docPanelOverlay").setStyle('opacity', MyDocs.OVERLAY_OPACITY);
|
||||||
|
|
||||||
// ajax call to delete item
|
// ajax call to delete item
|
||||||
YAHOO.util.Connect.asyncRequest(
|
YAHOO.util.Connect.asyncRequest(
|
||||||
"POST",
|
"POST",
|
||||||
@@ -522,11 +529,13 @@ var MyDocs = {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error during check out of item: " + response.responseText);
|
alert("Error during check out of item: " + response.responseText);
|
||||||
|
$("docPanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(response)
|
failure: function(response)
|
||||||
{
|
{
|
||||||
alert("Error during check out of item: " + response.responseText);
|
alert("Error during check out of item: " + response.responseText);
|
||||||
|
$("docPanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noderef=" + noderef
|
"noderef=" + noderef
|
||||||
@@ -538,6 +547,8 @@ var MyDocs = {
|
|||||||
*/
|
*/
|
||||||
checkinItem: function(name, noderef)
|
checkinItem: function(name, noderef)
|
||||||
{
|
{
|
||||||
|
$("docPanelOverlay").setStyle('opacity', MyDocs.OVERLAY_OPACITY);
|
||||||
|
|
||||||
// ajax call to delete item
|
// ajax call to delete item
|
||||||
YAHOO.util.Connect.asyncRequest(
|
YAHOO.util.Connect.asyncRequest(
|
||||||
"POST",
|
"POST",
|
||||||
@@ -552,11 +563,13 @@ var MyDocs = {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error during check in of item: " + response.responseText);
|
alert("Error during check in of item: " + response.responseText);
|
||||||
|
$("docPanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(response)
|
failure: function(response)
|
||||||
{
|
{
|
||||||
alert("Error during check in of item: " + response.responseText);
|
alert("Error during check in of item: " + response.responseText);
|
||||||
|
$("docPanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noderef=" + noderef
|
"noderef=" + noderef
|
||||||
@@ -598,7 +611,7 @@ var MyDocs = {
|
|||||||
|
|
||||||
var anim = new Fx.Styles(panel, {duration: MyDocs.ANIM_LENGTH, transition: Fx.Transitions.linear});
|
var anim = new Fx.Styles(panel, {duration: MyDocs.ANIM_LENGTH, transition: Fx.Transitions.linear});
|
||||||
anim.start({'opacity': 1});
|
anim.start({'opacity': 1});
|
||||||
this.fxOverlay.start(0.5);
|
this.fxOverlay.start(OVERLAY_OPACITY);
|
||||||
|
|
||||||
this.popupPanel = panel;
|
this.popupPanel = panel;
|
||||||
this.popupPanel.nodeRef = nodeRef;
|
this.popupPanel.nodeRef = nodeRef;
|
||||||
|
@@ -631,6 +631,8 @@ var MySpaces = {
|
|||||||
{
|
{
|
||||||
if (confirm("Are you sure you want to delete: " + name))
|
if (confirm("Are you sure you want to delete: " + name))
|
||||||
{
|
{
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', MySpaces.OVERLAY_OPACITY);
|
||||||
|
|
||||||
// ajax call to delete item
|
// ajax call to delete item
|
||||||
YAHOO.util.Connect.asyncRequest(
|
YAHOO.util.Connect.asyncRequest(
|
||||||
"POST",
|
"POST",
|
||||||
@@ -645,11 +647,13 @@ var MySpaces = {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error during delete of item: " + response.responseText);
|
alert("Error during delete of item: " + response.responseText);
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(response)
|
failure: function(response)
|
||||||
{
|
{
|
||||||
alert("Error during delete of item: " + response.responseText);
|
alert("Error during delete of item: " + response.responseText);
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noderef=" + noderef
|
"noderef=" + noderef
|
||||||
@@ -662,7 +666,9 @@ var MySpaces = {
|
|||||||
*/
|
*/
|
||||||
checkoutItem: function(name, noderef)
|
checkoutItem: function(name, noderef)
|
||||||
{
|
{
|
||||||
// ajax call to delete item
|
$("spacePanelOverlay").setStyle('opacity', MySpaces.OVERLAY_OPACITY);
|
||||||
|
|
||||||
|
// ajax call to check out item
|
||||||
YAHOO.util.Connect.asyncRequest(
|
YAHOO.util.Connect.asyncRequest(
|
||||||
"POST",
|
"POST",
|
||||||
getContextPath() + '/ajax/invoke/PortletActionsBean.checkoutItem',
|
getContextPath() + '/ajax/invoke/PortletActionsBean.checkoutItem',
|
||||||
@@ -676,11 +682,13 @@ var MySpaces = {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error during check out of item: " + response.responseText);
|
alert("Error during check out of item: " + response.responseText);
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(response)
|
failure: function(response)
|
||||||
{
|
{
|
||||||
alert("Error during check out of item: " + response.responseText);
|
alert("Error during check out of item: " + response.responseText);
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noderef=" + noderef
|
"noderef=" + noderef
|
||||||
@@ -692,7 +700,9 @@ var MySpaces = {
|
|||||||
*/
|
*/
|
||||||
checkinItem: function(name, noderef)
|
checkinItem: function(name, noderef)
|
||||||
{
|
{
|
||||||
// ajax call to delete item
|
$("spacePanelOverlay").setStyle('opacity', MySpaces.OVERLAY_OPACITY);
|
||||||
|
|
||||||
|
// ajax call to check in item
|
||||||
YAHOO.util.Connect.asyncRequest(
|
YAHOO.util.Connect.asyncRequest(
|
||||||
"POST",
|
"POST",
|
||||||
getContextPath() + '/ajax/invoke/PortletActionsBean.checkinItem',
|
getContextPath() + '/ajax/invoke/PortletActionsBean.checkinItem',
|
||||||
@@ -706,11 +716,13 @@ var MySpaces = {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
alert("Error during check in of item: " + response.responseText);
|
alert("Error during check in of item: " + response.responseText);
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
failure: function(response)
|
failure: function(response)
|
||||||
{
|
{
|
||||||
alert("Error during check in of item: " + response.responseText);
|
alert("Error during check in of item: " + response.responseText);
|
||||||
|
$("spacePanelOverlay").setStyle('opacity', 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noderef=" + noderef
|
"noderef=" + noderef
|
||||||
|
Reference in New Issue
Block a user