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:
Mike Hatfield
2007-07-11 16:31:43 +00:00
parent 3588265311
commit b33b2fbb7c
3 changed files with 30 additions and 3 deletions

View File

@@ -631,6 +631,8 @@ var MySpaces = {
{
if (confirm("Are you sure you want to delete: " + name))
{
$("spacePanelOverlay").setStyle('opacity', MySpaces.OVERLAY_OPACITY);
// ajax call to delete item
YAHOO.util.Connect.asyncRequest(
"POST",
@@ -645,11 +647,13 @@ var MySpaces = {
else
{
alert("Error during delete of item: " + response.responseText);
$("spacePanelOverlay").setStyle('opacity', 0);
}
},
failure: function(response)
{
alert("Error during delete of item: " + response.responseText);
$("spacePanelOverlay").setStyle('opacity', 0);
}
},
"noderef=" + noderef
@@ -662,7 +666,9 @@ var MySpaces = {
*/
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(
"POST",
getContextPath() + '/ajax/invoke/PortletActionsBean.checkoutItem',
@@ -676,11 +682,13 @@ var MySpaces = {
else
{
alert("Error during check out of item: " + response.responseText);
$("spacePanelOverlay").setStyle('opacity', 0);
}
},
failure: function(response)
{
alert("Error during check out of item: " + response.responseText);
$("spacePanelOverlay").setStyle('opacity', 0);
}
},
"noderef=" + noderef
@@ -692,7 +700,9 @@ var MySpaces = {
*/
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(
"POST",
getContextPath() + '/ajax/invoke/PortletActionsBean.checkinItem',
@@ -706,11 +716,13 @@ var MySpaces = {
else
{
alert("Error during check in of item: " + response.responseText);
$("spacePanelOverlay").setStyle('opacity', 0);
}
},
failure: function(response)
{
alert("Error during check in of item: " + response.responseText);
$("spacePanelOverlay").setStyle('opacity', 0);
}
},
"noderef=" + noderef