mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Office add-in collaboration updates
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7512 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -113,8 +113,7 @@ var OfficeMyTasks =
|
||||
OfficeAddin.hideStatusText();
|
||||
$("taskDetails").innerHTML = textResponse;
|
||||
}
|
||||
});
|
||||
myAjax.request();
|
||||
}).request();
|
||||
|
||||
// close other open tasks
|
||||
tasks.each(function(otherTask, j)
|
||||
@@ -180,8 +179,7 @@ var OfficeMyTasks =
|
||||
{
|
||||
OfficeAddin.showStatusText("Couldn't run workflow", "action_failed.gif", true);
|
||||
}
|
||||
});
|
||||
myAjax.request();
|
||||
}).request();
|
||||
},
|
||||
|
||||
startWorkflow: function(commandURL, Doc)
|
||||
@@ -229,18 +227,18 @@ var OfficeMyTasks =
|
||||
},
|
||||
|
||||
/* AJAX call to perform server-side actions */
|
||||
runAction: function(useTemplate, Action, Doc, Msg)
|
||||
runAction: function(useTemplate, action, nodeId, confirmMsg)
|
||||
{
|
||||
// Re-select a selected task after reload
|
||||
var taskSel = $E('#taskList .taskItemSelected');
|
||||
var extraParams = "";
|
||||
var outParams = null;
|
||||
if (taskSel != null)
|
||||
{
|
||||
var taskId = taskSel.id;
|
||||
extraParams = "t=" + encodeURI(taskId);
|
||||
outParams = "t=" + encodeURI(taskId);
|
||||
}
|
||||
|
||||
OfficeAddin.runAction(useTemplate, Action, Doc, Msg, extraParams);
|
||||
return OfficeAddin.getAction(useTemplate, action, nodeId, confirmMsg, null, outParams);
|
||||
},
|
||||
|
||||
refreshPage: function()
|
||||
|
Reference in New Issue
Block a user