mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 17:05:10 +00:00
Monotone-Parent: 1b59f6830523b216a3f073e483424747c8873bc8
Monotone-Revision: 1ec7a369d9d6744a61fc1193f0d873bbeb9fd414 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-07-11T18:08:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ ContactsUI_OBJC_FILES = \
|
||||
ContactsUI_RESOURCE_FILES += \
|
||||
Version \
|
||||
product.plist \
|
||||
ContactsUI.js
|
||||
|
||||
ContactsUI_RESOURCE_FILES += \
|
||||
Images/delete.png \
|
||||
|
||||
@@ -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"; }
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user