};
function addUser(userName, userID) {
+ var result = false;
if (!$(userID)) {
var ul = $("userList");
ul.appendChild(nodeForUser(userName, userID));
elements[elements.length-1] = ("addUserInAcls?uid="
+ userID);
triggerAjaxRequest(elements.join("/"), addUserCallback);
+ result = true;
}
+ return result;
}
function addUserCallback(http) {
}
function subscribeToFolder(refreshCallback, refreshCallbackData) {
+ var result = true;
if (UserLogin != refreshCallbackData["folder"]) {
- addUser(refreshCallbackData["folderName"],
- refreshCallbackData["folder"]);
+ result = addUser(refreshCallbackData["folderName"],
+ refreshCallbackData["folder"]);
}
else
refreshCallbackData["window"].alert(clabels["You cannot subscribe to a folder that you own!"]);
+ return result;
}
function openRightsForUserID(userID) {