+2004-08-14 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * UIxPageFrame.m: -title returns label for "OpenGroupware.org" when
+ -isUIxDebugEnabled is NO. (v0.9.13)
+
2004-08-12 Marcus Mueller <znek@mulle-kybernetik.com>
* UIxPageFrame.wox: removed left side navigation completely as it
ASSIGN(self->title, _value);
}
- (NSString *)title {
- return self->title;
+ if([self isUIxDebugEnabled])
+ return self->title;
+ return [self labelForKey:@"OpenGroupware.org"];
}
/* URL generation */
# $Id$
-SUBMINOR_VERSION:=12
+SUBMINOR_VERSION:=13
+2004-08-14 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * v0.9.37
+
+ * English.lproj/default.strings: new labels
+
+ * UIxAppointmentEditor.m: after save, return to ".." instead of "view"
+
+ * UIxAppointmentEditor.wox: added "Cancel" button.
+
+ * UIxCalView.m: refined behaviour of redirects according to Helge's
+ request.
+
2004-08-14 Marcus Mueller <znek@mulle-kybernetik.com>
* UIxAppointmentEditor.m: Changed "X-OGo-RESOURCE" into
/* Misc */
-"new" = "new";
-"printview" = "printview";
-"proposal" = "proposal";
-"Save" = "Save";
+"new" = "new";
+"printview" = "printview";
+"proposal" = "proposal";
+"Save" = "Save";
+"Cancel" = "Cancel";
+"OpenGroupware.org" = "OpenGroupware.org"
/* Appointments */
// TODO: add some error handling in form! (eg like in Zope)
}
- uri = [self _completeURIForMethod:@"view"];
+ uri = [self _completeURIForMethod:@".."];
return [self redirectToLocation:uri];
}
<tr>
<td>
<input type="submit" label:value="Save" name="save:method" />
- <input type="hidden" name="ical" var:value="iCalString" />
- <!-- <input type="submit" value="test" name="test:method" /> -->
+ <span class="button_auto_env"><a href="javascript:history.back()"
+ class="button_auto"
+ ><var:string label:value="Cancel" /></a></span>
+ <var:if condition="isUIxDebugEnabled">
+ <input type="submit" value="Test" name="test:method" />
+ </var:if>
</td>
</tr>
</table>
+ <input type="hidden" name="ical" var:value="iCalString" />
</form>
<var:if condition="isUIxDebugEnabled">
<hr />
NSString *uidsString, *loc, *prevMethod;
WORequest *req;
id <WOActionResults> r;
+ BOOL useGroups;
req = [[self context] request];
prevMethod = @"";
uri = [[NSMutableString alloc] initWithString:[self _userFolderURI]];
- if(!(([uidsString length] == 0) ||
- ([[uri lastPathComponent] isEqualToString:uidsString]))) {
- [uri appendString:@"/Groups/_custom_"];
+ /* if we have more than one entry, use groups - otherwise don't */
+ useGroups = [uidsString rangeOfString:@","].length > 0;
+
+ if(useGroups) {
+ [uri appendString:@"Groups/_custom_"];
[uri appendString:uidsString];
+ [uri appendString:@"/"];
+ }
+ else {
+ /* check if lastPathComponent is the base that we want to have */
+ if((([uidsString length] != 0) &&
+ (![[uri lastPathComponent] isEqualToString:uidsString]))) {
+ NSRange r;
+
+ /* uri ends with an '/', so we have to adjust the range a little */
+ r = NSMakeRange(0, [uri length] - 1);
+ r = [uri rangeOfString:@"/"
+ options:NSBackwardsSearch
+ range:r];
+ r = NSMakeRange(r.location + 1, [uri length] - r.location - 2);
+ [uri replaceCharactersInRange:r withString:uidsString];
+ }
}
- [uri appendString:@"/Calendar/"];
+ [uri appendString:@"Calendar/"];
[uri appendString:prevMethod];
#if 0
# $Id$
-SUBMINOR_VERSION:=36
+SUBMINOR_VERSION:=37
# v0.9.31 requires libWEExtensions v4.2.52
# v0.9.29 requires libWEExtensions v4.2.51