Monotone-Parent: 1b59f6830523b216a3f073e483424747c8873bc8

Monotone-Revision: 1ec7a369d9d6744a61fc1193f0d873bbeb9fd414

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-07-11T18:08:13
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2006-07-11 18:08:13 +00:00
parent 4bcbdedbfe
commit bc4c9e5e36
5 changed files with 44 additions and 3 deletions

View File

@ -1,5 +1,18 @@
2006-07-11 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/Contacts/UIxContactEditorBase.m ([UIxContactEditorBase
-snapshot]): add an entry for "email" into the snapshot
dictionary if a "contactEmail" URL parameter was detected and if
the entry for "email" is empty.
* UI/Contacts/Toolbars/SOGoContactFolder.toolbar: the "new card"
button now invokes the newContact() js function in ContactsUI.js
instead of opening "new" directly. newContact() pops up a window
stripped from its navigation bar.
* UI/Contacts/ContactsUI.js: new module specific to the ContactsUI
bundle (AddressBook).
* UI/Templates/MailerUI/UIxMailView.wox: added a div of class
"menu" and id "addressMenu" have the header email addresses
display it with the new menu code in generic.js.

View File

@ -0,0 +1,12 @@
function newContact(sender) {
var urlstr;
urlstr = "new";
newcwin = window.open(urlstr, "SOGo_new_contact",
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0," +
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
newcwin.focus();
return false; /* stop following the link */
}

View File

@ -22,6 +22,7 @@ ContactsUI_OBJC_FILES = \
ContactsUI_RESOURCE_FILES += \
Version \
product.plist \
ContactsUI.js
ContactsUI_RESOURCE_FILES += \
Images/delete.png \

View File

@ -1,9 +1,10 @@
( /* the toolbar groups -*-cperl-*- */
(
{ link = "new";
{ link = "#";
jsLink="js_card";
label="New Card";
image="new-card.png"; },
image="new-card.png";
onclick = "newContact(this);return false;"; },
{ link = "new_list";
label="New List";
image="new-list.png"; }

View File

@ -54,7 +54,16 @@
return @"{}"; /* empty property list */
}
- (NSMutableDictionary *)snapshot {
- (NSMutableDictionary *) snapshot
{
NSString *email;
email = [self queryParameterForKey:@"contactEmail"];
if ([email length] > 0
&& ![[self->snapshot objectForKey: @"mail"] length])
[self->snapshot setObject: email forKey: @"mail"];
return self->snapshot;
}
@ -270,4 +279,9 @@
return [self redirectToLocation:uri];
}
- (BOOL) isPopup
{
return YES;
}
@end /* UIxContactEditorBase */