]> err.no Git - scalable-opengroupware.org/blobdiff - UI/WebServerResources/UIxComponentEditor.js
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1180 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / WebServerResources / UIxComponentEditor.js
index e6fe548b64c0e3c812f485168938dad67601721e..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;
@@ -24,7 +24,7 @@ function onPopupUrlWindow(event) {
       preventDefault(event);
 
    var urlInput = document.getElementById("url");
-   var newUrl = window.prompt(labels["Target:"].decodeEntities(), urlInput.value);
+   var newUrl = window.prompt(labels["Target:"], urlInput.value);
    if (newUrl != null) {
       var documentHref = $("documentHref");
       var documentLabel = $("documentLabel");
@@ -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("/"));
 }
 
@@ -133,7 +127,7 @@ function initializePrivacyMenu() {
    var privacy = $("privacy").value.toUpperCase();
    if (privacy.length > 0) {
       var privacyMenu = $("privacy-menu").childNodesWithTag("ul")[0];
-      var menuEntries = privacyMenu.childNodesWithTag("li");
+      var menuEntries = $(privacyMenu).childNodesWithTag("li");
       var chosenNode;
       if (privacy == "CONFIDENTIAL")
         chosenNode = menuEntries[1];
@@ -142,7 +136,7 @@ function initializePrivacyMenu() {
       else
         chosenNode = menuEntries[0];
       privacyMenu.chosenNode = chosenNode;
-      chosenNode.addClassName("_chosen");
+      $(chosenNode).addClassName("_chosen");
    }
 }
 
@@ -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);
 }