From 16e6cc755d76328ef38a9d388da4041a3b9ad122 Mon Sep 17 00:00:00 2001 From: znek Date: Mon, 16 Aug 2004 14:49:05 +0000 Subject: [PATCH] better visualization according to the functional requirements git-svn-id: http://svn.opengroupware.org/SOGo/trunk@262 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/UI/Anais/AnaisUidSelector.m | 37 +++++++++++++++++++++++------- SOGo/UI/Anais/AnaisUidSelector.wox | 2 ++ SOGo/UI/Common/ChangeLog | 2 ++ SOGo/UI/Common/Version | 2 +- SOGo/UI/Common/calendar.css | 9 ++++++++ SOGo/UI/Scheduler/ChangeLog | 4 ++++ SOGo/UI/Scheduler/Version | 2 +- 7 files changed, 48 insertions(+), 10 deletions(-) diff --git a/SOGo/UI/Anais/AnaisUidSelector.m b/SOGo/UI/Anais/AnaisUidSelector.m index 4855b880..9515b59d 100644 --- a/SOGo/UI/Anais/AnaisUidSelector.m +++ b/SOGo/UI/Anais/AnaisUidSelector.m @@ -32,7 +32,7 @@ - (NSString *)prettyUid; - (NSString *)userUid; - +- (NSString *)_colorizedUid:(NSString *)_uid; - (NSString *)showHref; - (NSString *)jsCode; @@ -72,10 +72,18 @@ } - (NSString *)prettyUid { if([self->calendarUIDs objectAtIndex:0] == self->uid) - return self->uid; - return [NSString stringWithFormat:@", %@", self->uid]; + return [self _colorizedUid:self->uid]; + return [NSString stringWithFormat:@", %@", [self _colorizedUid:self->uid]]; } +- (NSString *)_colorizedUid:(NSString *)_uid { + if([_uid isEqualToString:[self userUid]]) { + _uid = [NSString stringWithFormat:@"%@", + _uid]; + } + return _uid; +} /* Href */ @@ -114,6 +122,8 @@ @" var dst = o.parentNode;\n" @" var n = document.createElement('td');\n" @" n.setAttribute('id', elemId);\n" + @" n.setAttribute('align', 'left');\n" + @" n.setAttribute('class', 'anais_uids');\n" @" dst.replaceChild(n, o);\n" @"}\n" @"function clearUidList() {\n" @@ -143,10 +153,21 @@ @" s = uid;\n" @" e.setAttribute('value', s);\n" @" var td = document.getElementById('anaisUIDList');\n" - @" if(td.hasChildNodes())\n" - @" uid = ', ' + uid;\n" - @" var text = document.createTextNode(uid);\n" - @" td.appendChild(text);\n" + @" var text;\n" + @" if(td.hasChildNodes()) {\n" + @" text = document.createTextNode(', ');\n" + @" td.appendChild(text);\n" + @" }\n" + @" text = document.createTextNode(uid);\n" + @" if(uid == '%@') {\n" + @" var span = document.createElement('span');\n" + @" span.setAttribute('class', 'anais_me');\n" + @" span.appendChild(text);\n" + @" td.appendChild(span);\n" + @" }\n" + @" else {\n" + @" td.appendChild(text);\n" + @" }\n" @" td = document.getElementById('clearUidList');\n" @" td.setAttribute('style', 'visibility:visible');\n" @" td = document.getElementById('showUidList');\n" @@ -155,7 +176,7 @@ @""; return [NSString stringWithFormat:script, - [self userUid]]; + [self userUid], [self userUid]]; } @end diff --git a/SOGo/UI/Anais/AnaisUidSelector.wox b/SOGo/UI/Anais/AnaisUidSelector.wox index 83debd17..d928fd98 100644 --- a/SOGo/UI/Anais/AnaisUidSelector.wox +++ b/SOGo/UI/Anais/AnaisUidSelector.wox @@ -54,9 +54,11 @@ diff --git a/SOGo/UI/Common/ChangeLog b/SOGo/UI/Common/ChangeLog index 7edd2302..8dcf7642 100644 --- a/SOGo/UI/Common/ChangeLog +++ b/SOGo/UI/Common/ChangeLog @@ -1,5 +1,7 @@ 2004-08-16 Marcus Mueller + * calendar.css: additional css for Anais uids (v0.9.15) + * calendar.css: additional css for other appointments (v0.9.14) 2004-08-14 Marcus Mueller diff --git a/SOGo/UI/Common/Version b/SOGo/UI/Common/Version index cc039aca..cf9e5c12 100644 --- a/SOGo/UI/Common/Version +++ b/SOGo/UI/Common/Version @@ -1,3 +1,3 @@ # $Id$ -SUBMINOR_VERSION:=14 +SUBMINOR_VERSION:=15 diff --git a/SOGo/UI/Common/calendar.css b/SOGo/UI/Common/calendar.css index 943a369b..c1656e15 100644 --- a/SOGo/UI/Common/calendar.css +++ b/SOGo/UI/Common/calendar.css @@ -19,6 +19,15 @@ font-style: italic; } +.anais_me { + color: #0000FF; +} + +.anais_uids { + font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif; + font-size: 10pt; +} + /* day overview */ diff --git a/SOGo/UI/Scheduler/ChangeLog b/SOGo/UI/Scheduler/ChangeLog index f89b442d..9804e937 100644 --- a/SOGo/UI/Scheduler/ChangeLog +++ b/SOGo/UI/Scheduler/ChangeLog @@ -1,3 +1,7 @@ +2004-08-16 Marcus Mueller + + * AnaisUidSelector.[wox,m]: Added colorizing of login's uid. (v0.9.66) + 2004-08-16 Helge Hess * UIxAppointmentProposal.m: small bugfix to range processing (v0.9.65) diff --git a/SOGo/UI/Scheduler/Version b/SOGo/UI/Scheduler/Version index 7f555bc7..be53f48b 100644 --- a/SOGo/UI/Scheduler/Version +++ b/SOGo/UI/Scheduler/Version @@ -1,6 +1,6 @@ # $Id$ -SUBMINOR_VERSION:=65 +SUBMINOR_VERSION:=66 # v0.9.61 requires libNGExtensions v4.2.102 # v0.9.41 requires libNGObjWeb v4.2.431 -- 2.39.5