]> err.no Git - scalable-opengroupware.org/commitdiff
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1294 d1b88da0-ebda-0310...
authorwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 6 Dec 2007 23:56:24 +0000 (23:56 +0000)
committerwolfgang <wolfgang@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Thu, 6 Dec 2007 23:56:24 +0000 (23:56 +0000)
UI/Contacts/product.plist
UI/WebServerResources/UIxMailEditor.js

index 88da1673b8e5edd6fc0d24936636b55349fcc37e..7cb5f6fcb63c8cdf0448975b9e7ec9da013ea061 100644 (file)
               protectedBy = "<public>";
               pageName    = "UIxContactEditor";
            };
+           write = {
+              protectedBy = "<public>";
+              pageName    = "UIxContactEditor";
+              actionName  = "write";
+           };
         };
      };
   };
index ed57963663de48545b675b374bee73bfcdd520f7..0925b03e6448c78d75a4ba915fb30011bd203c9b 100644 (file)
@@ -214,6 +214,7 @@ function onAttachmentChange(event) {
     this.removeClassName("currentAttachment");
     var list = $("attachments");
     createAttachment(this, list);
+    clickedEditorAttach(null)
   }
 }
 
@@ -249,6 +250,12 @@ function clickedEditorSave(sender) {
 }
 
 function onTextFocus() {
+  var input = currentAttachmentInput();
+  if (input)
+    input.parentNode.removeChild(input);
+}
+
+function onTextFirstFocus() {
   var content = this.getValue();
   if (content.lastIndexOf("--") == 0) {
     this.insertBefore(document.createTextNode("\r\n"),
@@ -258,7 +265,7 @@ function onTextFocus() {
     var length = this.getValue().length - signatureLength - 1;
     this.setCaretTo(length);
   }
-  Event.stopObserving(this, "focus", onTextFocus);
+  Event.stopObserving(this, "focus", onTextFirstFocus);
 }
 
 function initMailEditor() {
@@ -283,6 +290,7 @@ function initMailEditor() {
   if (sigLimit > -1)
     signatureLength = (textContent.length - sigLimit);
   textarea.scrollTop = textarea.scrollHeight;
+  textarea.observe("focus", onTextFirstFocus);
   textarea.observe("focus", onTextFocus);
 
   onWindowResize(null);