]> err.no Git - scalable-opengroupware.org/blobdiff - UI/WebServerResources/UIxComponentEditor.js
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1261 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / WebServerResources / UIxComponentEditor.js
index af61b807ea25ae044c421c87332a825b695ea61b..8aa9c1124bb95c85430e2cdc59f6eedfe3b45527 100644 (file)
@@ -1,7 +1,7 @@
 function onPopupAttendeesWindow(event) {
    if (event)
       preventDefault(event);
-   window.open(ApplicationBaseURL + "editAttendees", null, 
+   window.open(ApplicationBaseURL + "/editAttendees", null, 
                "width=803,height=573");
 
    return false;
@@ -74,13 +74,7 @@ function onChangeCalendar(event) {
    var form = document.forms["editform"];
    var urlElems = form.getAttribute("action").split("/");
    var choice = calendars[this.value];
-   var ownerLogin;
-   if (choice.indexOf(":") > -1)
-      ownerLogin = choice.split(":")[0];
-   else
-      ownerLogin = UserLogin;
-   urlElems[urlElems.length-4] = ownerLogin;
-
+   urlElems[urlElems.length-3] = choice;
    form.setAttribute("action", urlElems.join("/"));
 }
 
@@ -170,7 +164,7 @@ function onComponentEditorLoad(event) {
 
    var menuItems = $("itemPrivacyList").childNodesWithTag("li");
    for (var i = 0; i < menuItems.length; i++)
-      Event.observe(menuItems[i], "mouseup",
+      Event.observe(menuItems[i], "mousedown",
                    onMenuSetClassification.bindAsEventListener(menuItems[i]),
                    false);
 }