]> err.no Git - scalable-opengroupware.org/commitdiff
Fixed SOGo Bug #1053
authorznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Wed, 26 Jan 2005 17:38:33 +0000 (17:38 +0000)
committerznek <znek@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Wed, 26 Jan 2005 17:38:33 +0000 (17:38 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@497 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SOGo.xcode/project.pbxproj
SOGo/UI/Mailer/ChangeLog
SOGo/UI/Mailer/GNUmakefile
SOGo/UI/Mailer/UIxMailEditor.m
SOGo/UI/Mailer/UIxMailWindowCloser.m [new file with mode: 0644]
SOGo/UI/Mailer/UIxMailWindowCloser.wox [new file with mode: 0644]
SOGo/UI/Mailer/Version

index a878a6786e224b01aa227717a3eb20d01c992fd8..9833d84665f012adc327348c66c2103a89739584 100644 (file)
                        sourceTree = "<group>";
                        tabWidth = 8;
                };
+               AD0A0ACB07A8093400D3B8EF = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = text.xml;
+                       path = UIxMailWindowCloser.wox;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
+               AD0A0ACC07A8093400D3B8EF = {
+                       fileEncoding = 4;
+                       isa = PBXFileReference;
+                       lastKnownFileType = sourcecode.c.objc;
+                       path = UIxMailWindowCloser.m;
+                       refType = 4;
+                       sourceTree = "<group>";
+               };
                AD152B6F06AC159A002375D2 = {
                        fileEncoding = 4;
                        indentWidth = 8;
                                ADC07230072E9BFB00C125E0,
                                ADDF4DCE06DE0E9A00C4E7F8,
                                ADDF4DCF06DE0E9A00C4E7F8,
+                               AD0A0ACC07A8093400D3B8EF,
+                               AD0A0ACB07A8093400D3B8EF,
                        );
                        isa = PBXGroup;
                        name = Components;
index 891da1bc60e49c02ed1b022d7ad0cd45d4e9d750..f6fce35a1ad7d8d2e81c4c23ded092dbdbc20add 100644 (file)
@@ -1,4 +1,14 @@
-2004-01-07  Marcus Mueller  <znek@mulle-kybernetik.com>
+2005-01-26  Marcus Mueller  <znek@mulle-kybernetik.com>
+
+        * UIxMailWindowCloser.{m,wox}: new component which closes the window
+          in its "onLoad".
+
+        * UIxMailEditor.m: close window after successful send by opening
+          UIxMailWindowCloser. This fixes SOGo Bug #1053.
+
+        * v0.9.72
+
+2005-01-07  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * {English/French}.lproj/default.strings: changed encoding from
          ISO-Latin-1 to UTF-8, which is now the default (v0.9.71)
index 0fd99b7369c629aa16b539411a811b39d1e8c623..bf97210dab00e8b830cb2de4c6d5a59125fc00ab 100644 (file)
@@ -34,6 +34,7 @@ MailerUI_OBJC_FILES += \
        UIxMailEditorAction.m           \
        UIxMailToSelection.m            \
        UIxMailAddressbook.m            \
+       UIxMailWindowCloser.m           \
        \
        UIxMailPartViewer.m             \
        UIxMailPartTextViewer.m         \
@@ -64,6 +65,7 @@ MailerUI_RESOURCE_FILES += \
        UIxMailEditorAttach.wox         \
        UIxMailToSelection.wox          \
        UIxMailAddressbook.wox          \
+       UIxMailWindowCloser.wox         \
        \
        UIxMailPartTextViewer.wox       \
        UIxMailPartMixedViewer.wox      \
index 9f3af7b2a8a37cc3f0358fa6b8a4034123b473ae..20e565c363885bfc2e89a8c2e0a19f6ad9991516 100644 (file)
@@ -237,9 +237,7 @@ static NSArray *infoKeys = nil;
     return error;
   
   // if everything is ok, close the window (send a JS closing the Window)
-#warning TODO: send window close JavaScript
-  [self logWithFormat:@"TODO: should close the send window"];
-  return self;
+  return [self pageWithName:@"UIxMailWindowCloser"];
 }
 
 - (id)deleteAction {
diff --git a/SOGo/UI/Mailer/UIxMailWindowCloser.m b/SOGo/UI/Mailer/UIxMailWindowCloser.m
new file mode 100644 (file)
index 0000000..b7954de
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+  Copyright (C) 2000-2004 SKYRIX Software AG
+
+  This file is part of OGo
+
+  OGo is free software; you can redistribute it and/or modify it under
+  the terms of the GNU Lesser General Public License as published by the
+  Free Software Foundation; either version 2, or (at your option) any
+  later version.
+
+  OGo is distributed in the hope that it will be useful, but WITHOUT ANY
+  WARRANTY; without even the implied warranty of MERCHANTABILITY or
+  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+  License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with OGo; see the file COPYING.  If not, write to the
+  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
+  02111-1307, USA.
+*/
+// $Id$
+
+#include <NGObjWeb/NGObjWeb.h>
+
+@interface UIxMailWindowCloser : WOComponent
+{
+
+}
+
+@end
+
+#include "common.h"
+
+@implementation UIxMailWindowCloser
+
+@end
diff --git a/SOGo/UI/Mailer/UIxMailWindowCloser.wox b/SOGo/UI/Mailer/UIxMailWindowCloser.wox
new file mode 100644 (file)
index 0000000..e21397c
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version='1.0' standalone='yes'?>
+
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:var="http://www.skyrix.com/od/binding"
+      xmlns:const="http://www.skyrix.com/od/constant"
+      xmlns:rsrc="OGo:url"
+      xmlns:label="OGo:label"
+>
+  <head>
+    <title><var:string label:value="OpenGroupware.org"/></title>
+    <meta name="description" content="SOGo Web Interface"/>
+    <meta name="author" content="SKYRIX Software AG"/>
+    <meta name="robots" content="stop"/>
+    <link href="mailto:info@skyrix.com" rev="made"/>
+  </head>
+
+  <body onload="window.close()">
+  </body>
+</html>
\ No newline at end of file
index 806bdfcb9ec4a3f3962cc2136900c2271e657a38..d27cb5634824134c01c3b4e3f78d3fa57997c308 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=71
+SUBMINOR_VERSION:=72
 
 # v0.9.70 requires NGExtensions v4.5.136
 # v0.9.69 requires libNGMime    v4.5.203