From: wolfgang Date: Mon, 17 Dec 2007 21:43:57 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1309 d1b88da0-ebda-0310... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a48d26b5c461fa52b53634dcfb330eeffa9963fc;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1309 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/UI/WebServerResources/UIxAclEditor.js b/UI/WebServerResources/UIxAclEditor.js index 9617809b..66a448d2 100644 --- a/UI/WebServerResources/UIxAclEditor.js +++ b/UI/WebServerResources/UIxAclEditor.js @@ -8,6 +8,7 @@ var AclEditor = { }; function addUser(userName, userID) { + var result = false; if (!$(userID)) { var ul = $("userList"); ul.appendChild(nodeForUser(userName, userID)); @@ -16,7 +17,9 @@ function addUser(userName, userID) { elements[elements.length-1] = ("addUserInAcls?uid=" + userID); triggerAjaxRequest(elements.join("/"), addUserCallback); + result = true; } + return result; } function addUserCallback(http) { @@ -88,12 +91,14 @@ function onUserRemove(event) { } 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) {