mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Project Space presence added click to chat for Skype contacts. Also fix to opacity overlay for IE
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7596 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -16,9 +16,12 @@ var ProjectPresence =
|
||||
|
||||
statuses.each(function(stat, i)
|
||||
{
|
||||
var row = rows[i];
|
||||
var userDetails = stat.attributes["rel"].value.split("|");
|
||||
var proxyURL = window.contextPath + "/ajax/invoke/PresenceProxyBean.proxyRequest";
|
||||
var statusURL = ProjectPresence.getStatusURL(userDetails);
|
||||
row.removeEvent("click");
|
||||
row.setStyle("cursor", "auto");
|
||||
|
||||
if (statusURL != "")
|
||||
{
|
||||
@@ -40,11 +43,20 @@ var ProjectPresence =
|
||||
}
|
||||
if (statusType == "online")
|
||||
{
|
||||
$("colleaguesOnline").adopt(rows[i]);
|
||||
$("colleaguesOnline").adopt(row);
|
||||
if ((userDetails[0] == "skype") && (row.attributes["rel"] == null))
|
||||
{
|
||||
row.addEvent("click", function()
|
||||
{
|
||||
window.location = "skype:" + userDetails[1] + "?chat";
|
||||
});
|
||||
row.setStyle("cursor", "pointer");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$("colleaguesNotOnline").adopt(rows[i]);
|
||||
// Fix-up IE overlay for images
|
||||
if (window.ie)
|
||||
{
|
||||
stat.getParent().setStyle("opacity", ProjectPresence.OFFLINE_OPACITY);
|
||||
@@ -57,7 +69,8 @@ var ProjectPresence =
|
||||
{
|
||||
stat.addClass("none");
|
||||
stat.title = "User's presence provider has not been configured by Alfresco admin";
|
||||
$("colleaguesNotOnline").adopt(rows[i]);
|
||||
$("colleaguesNotOnline").adopt(row);
|
||||
// Fix-up IE overlay for images
|
||||
if (window.ie)
|
||||
{
|
||||
stat.getParent().setStyle("opacity", ProjectPresence.OFFLINE_OPACITY);
|
||||
|
Reference in New Issue
Block a user