Monotone-Parent: 773965cc12e1e34ce72a11b7b25f3ff6e0dc7887
Monotone-Revision: c0da933d3e86c470a7d83491a010f1ba6edc3fcd Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-03-25T19:59:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
faff3ed110
commit
a62cd61e0d
20
ChangeLog
20
ChangeLog
|
@ -1,3 +1,23 @@
|
||||||
|
2008-03-25 Francis Lachapelle <flachapelle@inverse.ca>
|
||||||
|
|
||||||
|
* UI/Scheduler/UIxCalMainView.m ([UIxCalMainView
|
||||||
|
-verticalDragHandleStyle]): CSS style wrt to position of drag
|
||||||
|
handle saved by current user.
|
||||||
|
([UIxCalMainView -horizontalDragHandleStyle]): idem.
|
||||||
|
([UIxCalMainView -eventsListViewStyle]): idem.
|
||||||
|
|
||||||
|
* UI/Contacts/UIxContactsListViewContainer.m
|
||||||
|
([UIxContactsListViewContainer -verticalDragHandleStyle]): CSS
|
||||||
|
style wrt to position of drag handle saved by current user.
|
||||||
|
([UIxContactsListViewContainer -horizontalDragHandleStyle]): idem.
|
||||||
|
([UIxContactsListViewContainer -contactsListContentStyle]): idem.
|
||||||
|
|
||||||
|
* UI/MailerUI/UIxMailMainFrame.m ([UIxMailMainFrame
|
||||||
|
-verticalDragHandleStyle]): CSS style wrt to position of drag
|
||||||
|
handle saved by current user.
|
||||||
|
([UIxMailMainFrame -horizontalDragHandleStyle]): idem.
|
||||||
|
([UIxMailMainFrame -mailboxContentStyle]): idem.
|
||||||
|
|
||||||
2008-03-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2008-03-18 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
||||||
|
|
3
NEWS
3
NEWS
|
@ -5,6 +5,9 @@
|
||||||
- pressing enter in the contact edition dialog will perform the creation/update operation
|
- pressing enter in the contact edition dialog will perform the creation/update operation
|
||||||
- implemented more of the CalDAV specification for compatibility with Lightning 0.8
|
- implemented more of the CalDAV specification for compatibility with Lightning 0.8
|
||||||
- added Italian translation, thanks to Marco Lertora
|
- added Italian translation, thanks to Marco Lertora
|
||||||
|
- improved restoration of drag hanldes state
|
||||||
|
- improved contextual menu handling of Address Book module
|
||||||
|
- fixed various bugs with Safari 3.1
|
||||||
|
|
||||||
0.9.0-20080208 (1.0 rc5)
|
0.9.0-20080208 (1.0 rc5)
|
||||||
------------------------
|
------------------------
|
||||||
|
|
|
@ -108,6 +108,8 @@
|
||||||
"Name of the Address Book" = "Name of the Address Book";
|
"Name of the Address Book" = "Name of the Address Book";
|
||||||
"Are you sure you want to delete the selected address book?"
|
"Are you sure you want to delete the selected address book?"
|
||||||
= "Are you sure you want to delete the selected address book?";
|
= "Are you sure you want to delete the selected address book?";
|
||||||
|
"You cannot delete the selected contact(s)"
|
||||||
|
= "You cannot delete the selected contact(s).";
|
||||||
|
|
||||||
"Address Book Name" = "Address Book Name";
|
"Address Book Name" = "Address Book Name";
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,8 @@
|
||||||
"Name of the Address Book" = "Nom du carnet d'adresses";
|
"Name of the Address Book" = "Nom du carnet d'adresses";
|
||||||
"Are you sure you want to delete the selected address book?"
|
"Are you sure you want to delete the selected address book?"
|
||||||
= "Voulez-vous vraiment supprimer le carnet d'adresses sélectionné ?";
|
= "Voulez-vous vraiment supprimer le carnet d'adresses sélectionné ?";
|
||||||
|
"You cannot delete the selected contact(s)"
|
||||||
|
= "Vous ne pouvez pas supprimer les contacts sélectionnés.";
|
||||||
"Address Book Name" = "Nom du carnet d'adresses";
|
"Address Book Name" = "Nom du carnet d'adresses";
|
||||||
|
|
||||||
"You cannot subscribe to a folder that you own!"
|
"You cannot subscribe to a folder that you own!"
|
||||||
|
|
|
@ -112,6 +112,8 @@
|
||||||
"Name of the Address Book" = "Adressbuch-Name";
|
"Name of the Address Book" = "Adressbuch-Name";
|
||||||
"Are you sure you want to delete the selected address book?"
|
"Are you sure you want to delete the selected address book?"
|
||||||
= "Wollen Sie wirklich das ausgewählte Adressbuch löschen?";
|
= "Wollen Sie wirklich das ausgewählte Adressbuch löschen?";
|
||||||
|
"You cannot delete the selected contact(s)"
|
||||||
|
= "Ausgewählte Karten können nicht gelöscht werden.";
|
||||||
|
|
||||||
"Address Book Name" = "Adressbuch Name";
|
"Address Book Name" = "Adressbuch Name";
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
NSMutableDictionary *moduleSettings;
|
NSMutableDictionary *moduleSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (WOResponse *) getDragHandlesStateAction;
|
|
||||||
- (WOResponse *) saveDragHandleStateAction;
|
- (WOResponse *) saveDragHandleStateAction;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -269,24 +269,6 @@
|
||||||
// ? contactFolder : nil);
|
// ? contactFolder : nil);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
- (WOResponse *) getDragHandlesStateAction
|
|
||||||
{
|
|
||||||
NSArray *dragHandles;
|
|
||||||
NSString *vertical, *horizontal;
|
|
||||||
|
|
||||||
[self _setupContext];
|
|
||||||
|
|
||||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
|
||||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
|
||||||
dragHandles = [[NSArray alloc] initWithObjects:
|
|
||||||
vertical ? vertical : @"",
|
|
||||||
horizontal ? horizontal : @"",
|
|
||||||
nil];
|
|
||||||
|
|
||||||
return [self responseWithStatus: 200
|
|
||||||
andString: [dragHandles jsonRepresentation]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (WOResponse *) saveDragHandleStateAction
|
- (WOResponse *) saveDragHandleStateAction
|
||||||
{
|
{
|
||||||
WORequest *request;
|
WORequest *request;
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
{
|
{
|
||||||
NSString *selectorComponentClass;
|
NSString *selectorComponentClass;
|
||||||
id currentFolder;
|
id currentFolder;
|
||||||
|
NSUserDefaults *ud;
|
||||||
|
NSMutableDictionary *moduleSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setCurrentFolder: (id) folder;
|
- (void) setCurrentFolder: (id) folder;
|
||||||
|
@ -43,6 +45,10 @@
|
||||||
- (NSString *) currentContactFolderOwner;
|
- (NSString *) currentContactFolderOwner;
|
||||||
- (NSString *) currentContactFolderName;
|
- (NSString *) currentContactFolderName;
|
||||||
|
|
||||||
|
- (NSString *) verticalDragHandleStyle;
|
||||||
|
- (NSString *) horizontalDragHandleStyle;
|
||||||
|
- (NSString *) contactsListContentStyle;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif /* UIXCONTACTSLISTVIEWCONTAINERBASE_H */
|
#endif /* UIXCONTACTSLISTVIEWCONTAINERBASE_H */
|
||||||
|
|
|
@ -37,6 +37,27 @@
|
||||||
|
|
||||||
@implementation UIxContactsListViewContainer
|
@implementation UIxContactsListViewContainer
|
||||||
|
|
||||||
|
- (void) _setupContext
|
||||||
|
{
|
||||||
|
SOGoUser *activeUser;
|
||||||
|
NSString *module;
|
||||||
|
SOGoContactFolders *clientObject;
|
||||||
|
|
||||||
|
activeUser = [context activeUser];
|
||||||
|
clientObject = [[self clientObject] container];
|
||||||
|
|
||||||
|
module = [clientObject nameInContainer];
|
||||||
|
|
||||||
|
ud = [activeUser userSettings];
|
||||||
|
moduleSettings = [ud objectForKey: module];
|
||||||
|
if (!moduleSettings)
|
||||||
|
{
|
||||||
|
moduleSettings = [NSMutableDictionary new];
|
||||||
|
[moduleSettings autorelease];
|
||||||
|
}
|
||||||
|
[ud setObject: moduleSettings forKey: module];
|
||||||
|
}
|
||||||
|
|
||||||
- (id) init
|
- (id) init
|
||||||
{
|
{
|
||||||
if ((self = [super init]))
|
if ((self = [super init]))
|
||||||
|
@ -120,4 +141,34 @@
|
||||||
return [[self queryParameterForKey: @"popup"] boolValue];
|
return [[self queryParameterForKey: @"popup"] boolValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *) verticalDragHandleStyle
|
||||||
|
{
|
||||||
|
NSString *vertical;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||||
|
|
||||||
|
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) horizontalDragHandleStyle
|
||||||
|
{
|
||||||
|
NSString *horizontal;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||||
|
|
||||||
|
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) contactsListContentStyle
|
||||||
|
{
|
||||||
|
int height;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
height = [[moduleSettings objectForKey: @"DragHandleVertical"] intValue];
|
||||||
|
|
||||||
|
return (height ? [NSString stringWithFormat: @"%ipx", (height - 27)] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -50,11 +50,6 @@
|
||||||
protectedBy = "View";
|
protectedBy = "View";
|
||||||
pageName = "UIxContactsUserFolders";
|
pageName = "UIxContactsUserFolders";
|
||||||
};
|
};
|
||||||
dragHandlesState = {
|
|
||||||
protectedBy = "<public>";
|
|
||||||
pageName = "UIxContactFoldersView";
|
|
||||||
actionName = "getDragHandlesState";
|
|
||||||
};
|
|
||||||
saveDragHandleState = {
|
saveDragHandleState = {
|
||||||
protectedBy = "View";
|
protectedBy = "View";
|
||||||
pageName = "UIxContactFoldersView";
|
pageName = "UIxContactFoldersView";
|
||||||
|
|
|
@ -31,9 +31,12 @@
|
||||||
NSMutableDictionary *moduleSettings;
|
NSMutableDictionary *moduleSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (WOResponse *) getDragHandlesStateAction;
|
|
||||||
- (WOResponse *) getFoldersStateAction;
|
- (WOResponse *) getFoldersStateAction;
|
||||||
|
|
||||||
|
- (NSString *) verticalDragHandleStyle;
|
||||||
|
- (NSString *) horizontalDragHandleStyle;
|
||||||
|
- (NSString *) mailboxContentStyle;
|
||||||
|
|
||||||
- (WOResponse *) saveDragHandleStateAction;
|
- (WOResponse *) saveDragHandleStateAction;
|
||||||
- (WOResponse *) saveFoldersStateAction;
|
- (WOResponse *) saveFoldersStateAction;
|
||||||
|
|
||||||
|
|
|
@ -163,24 +163,6 @@
|
||||||
return [self redirectToLocation: newLocation];
|
return [self redirectToLocation: newLocation];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (WOResponse *) getDragHandlesStateAction
|
|
||||||
{
|
|
||||||
NSArray *dragHandles;
|
|
||||||
NSString *vertical, *horizontal;
|
|
||||||
|
|
||||||
[self _setupContext];
|
|
||||||
|
|
||||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
|
||||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
|
||||||
dragHandles = [[NSArray alloc] initWithObjects:
|
|
||||||
vertical ? vertical : @"",
|
|
||||||
horizontal ? horizontal : @"",
|
|
||||||
nil];
|
|
||||||
|
|
||||||
return [self responseWithStatus: 200
|
|
||||||
andString: [dragHandles jsonRepresentation]];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (WOResponse *) getFoldersStateAction
|
- (WOResponse *) getFoldersStateAction
|
||||||
{
|
{
|
||||||
NSString *expandedFolders;
|
NSString *expandedFolders;
|
||||||
|
@ -191,6 +173,36 @@
|
||||||
return [self responseWithStatus: 200 andString: expandedFolders];
|
return [self responseWithStatus: 200 andString: expandedFolders];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (NSString *) verticalDragHandleStyle
|
||||||
|
{
|
||||||
|
NSString *vertical;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||||
|
|
||||||
|
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) horizontalDragHandleStyle
|
||||||
|
{
|
||||||
|
NSString *horizontal;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||||
|
|
||||||
|
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) mailboxContentStyle
|
||||||
|
{
|
||||||
|
NSString *height;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||||
|
|
||||||
|
return (height ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
- (WOResponse *) saveDragHandleStateAction
|
- (WOResponse *) saveDragHandleStateAction
|
||||||
{
|
{
|
||||||
WORequest *request;
|
WORequest *request;
|
||||||
|
|
|
@ -330,11 +330,6 @@
|
||||||
pageName = "UIxMailMainFrame";
|
pageName = "UIxMailMainFrame";
|
||||||
actionName = "compose";
|
actionName = "compose";
|
||||||
};
|
};
|
||||||
dragHandlesState = {
|
|
||||||
protectedBy = "View";
|
|
||||||
pageName = "UIxMailMainFrame";
|
|
||||||
actionName = "getDragHandlesState";
|
|
||||||
};
|
|
||||||
foldersState = {
|
foldersState = {
|
||||||
protectedBy = "View";
|
protectedBy = "View";
|
||||||
pageName = "UIxMailMainFrame";
|
pageName = "UIxMailMainFrame";
|
||||||
|
|
|
@ -47,7 +47,10 @@
|
||||||
- (void) setYearMenuItem: (NSNumber *) aYearMenuItem;
|
- (void) setYearMenuItem: (NSNumber *) aYearMenuItem;
|
||||||
- (NSNumber *) yearMenuItem;
|
- (NSNumber *) yearMenuItem;
|
||||||
|
|
||||||
- (WOResponse *) getDragHandlesStateAction;
|
- (NSString *) verticalDragHandleStyle;
|
||||||
|
- (NSString *) horizontalDragHandleStyle;
|
||||||
|
- (NSString *) eventsListViewStyle;
|
||||||
|
|
||||||
- (WOResponse *) saveDragHandleStateAction;
|
- (WOResponse *) saveDragHandleStateAction;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -124,22 +124,34 @@ static NSMutableArray *yearMenuItems = nil;
|
||||||
return yearMenuItem;
|
return yearMenuItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (WOResponse *) getDragHandlesStateAction
|
- (NSString *) verticalDragHandleStyle
|
||||||
{
|
{
|
||||||
NSArray *dragHandles;
|
NSString *vertical;
|
||||||
NSString *vertical, *horizontal;
|
|
||||||
|
|
||||||
[self _setupContext];
|
[self _setupContext];
|
||||||
|
|
||||||
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
vertical = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||||
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
|
||||||
dragHandles = [[NSArray alloc] initWithObjects:
|
|
||||||
vertical != nil ? vertical : @"",
|
|
||||||
horizontal ? horizontal : @"",
|
|
||||||
nil];
|
|
||||||
|
|
||||||
return [self responseWithStatus: 200
|
return (vertical ? [vertical stringByAppendingFormat: @"px"] : nil);
|
||||||
andString: [dragHandles jsonRepresentation]];
|
}
|
||||||
|
|
||||||
|
- (NSString *) horizontalDragHandleStyle
|
||||||
|
{
|
||||||
|
NSString *horizontal;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
horizontal = [moduleSettings objectForKey: @"DragHandleHorizontal"];
|
||||||
|
|
||||||
|
return (horizontal ? [horizontal stringByAppendingFormat: @"px"] : nil);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (NSString *) eventsListViewStyle
|
||||||
|
{
|
||||||
|
NSString *height;
|
||||||
|
|
||||||
|
[self _setupContext];
|
||||||
|
height = [moduleSettings objectForKey: @"DragHandleVertical"];
|
||||||
|
|
||||||
|
return (height ? [NSString stringWithFormat: @"%ipx", ([height intValue] - 27)] : nil);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (WOResponse *) saveDragHandleStateAction
|
- (WOResponse *) saveDragHandleStateAction
|
||||||
|
|
|
@ -40,11 +40,6 @@
|
||||||
protectedBy = "View";
|
protectedBy = "View";
|
||||||
pageName = "UIxCalMainView";
|
pageName = "UIxCalMainView";
|
||||||
};
|
};
|
||||||
dragHandlesState = {
|
|
||||||
protectedBy = "<public>";
|
|
||||||
pageName = "UIxCalMainView";
|
|
||||||
actionName = "getDragHandlesState";
|
|
||||||
};
|
|
||||||
saveDragHandleState = {
|
saveDragHandleState = {
|
||||||
protectedBy = "View";
|
protectedBy = "View";
|
||||||
pageName = "UIxCalMainView";
|
pageName = "UIxCalMainView";
|
||||||
|
|
|
@ -31,12 +31,7 @@
|
||||||
<tr class="tableview"
|
<tr class="tableview"
|
||||||
var:id="currentCName"
|
var:id="currentCName"
|
||||||
var:contactname="currentContact.displayName"
|
var:contactname="currentContact.displayName"
|
||||||
var:contactid="currentContact.c_uid"
|
var:contactid="currentContact.c_uid">
|
||||||
onclick="return onContactRowClick(event, this);"
|
|
||||||
ondblclick="return onContactRowDblClick(event, this);"
|
|
||||||
onmousedown="return false;"
|
|
||||||
onselectstart="return false;"
|
|
||||||
oncontextmenu="return onContactContextMenu(event, this);">
|
|
||||||
<td><img rsrc:src="abcard.gif"
|
<td><img rsrc:src="abcard.gif"
|
||||||
/><var:string value="currentContact.displayName" const:escapeHTML="YES" /></td>
|
/><var:string value="currentContact.displayName" const:escapeHTML="YES" /></td>
|
||||||
<td><var:string value="currentContact.mail"/></td>
|
<td><var:string value="currentContact.mail"/></td>
|
||||||
|
|
|
@ -11,6 +11,22 @@
|
||||||
title="name"
|
title="name"
|
||||||
var:popup="isPopup">
|
var:popup="isPopup">
|
||||||
<var:if condition="hideFrame" const:negate="YES">
|
<var:if condition="hideFrame" const:negate="YES">
|
||||||
|
|
||||||
|
<style type="text/css">
|
||||||
|
<var:if condition="horizontalDragHandleStyle">
|
||||||
|
DIV#dragHandle, DIV#rightPanel
|
||||||
|
{ left: <var:string value="horizontalDragHandleStyle" />; }
|
||||||
|
DIV#contactFoldersList
|
||||||
|
{ width: <var:string value="horizontalDragHandleStyle" />; }
|
||||||
|
</var:if><var:if condition="verticalDragHandleStyle">
|
||||||
|
DIV#rightDragHandle, DIV#contactView
|
||||||
|
{ top: <var:string value="verticalDragHandleStyle" />; }
|
||||||
|
</var:if><var:if condition="contactsListContentStyle">
|
||||||
|
DIV#contactsListContent
|
||||||
|
{ height: <var:string value="contactsListContentStyle" />; }
|
||||||
|
</var:if>
|
||||||
|
</style>
|
||||||
|
|
||||||
<div class="menu" id="contactFoldersMenu">
|
<div class="menu" id="contactFoldersMenu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><var:string label:value="Modify" /></li>
|
<li><var:string label:value="Modify" /></li>
|
||||||
|
@ -85,8 +101,7 @@
|
||||||
|
|
||||||
<div class="dragHandle" id="rightDragHandle"><!-- space --></div>
|
<div class="dragHandle" id="rightDragHandle"><!-- space --></div>
|
||||||
|
|
||||||
<div id="contactView" onmousedown="return false;"
|
<div id="contactView" onmousedown="return false;"><!-- space --></div>
|
||||||
></div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /var:if> -->
|
<!-- /var:if> -->
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,20 @@
|
||||||
var textMailAccounts = '<var:string value="mailAccounts" const:escapeHTML="NO"/>';
|
var textMailAccounts = '<var:string value="mailAccounts" const:escapeHTML="NO"/>';
|
||||||
var textQuotaSupport = '<var:string value="quotaSupport" const:escapeHTML="NO"/>';
|
var textQuotaSupport = '<var:string value="quotaSupport" const:escapeHTML="NO"/>';
|
||||||
</script>
|
</script>
|
||||||
|
<style type="text/css">
|
||||||
|
<var:if condition="horizontalDragHandleStyle">
|
||||||
|
DIV#verticalDragHandle, DIV#rightPanel
|
||||||
|
{ left: <var:string value="horizontalDragHandleStyle" />; }
|
||||||
|
DIV#leftPanel
|
||||||
|
{ width: <var:string value="horizontalDragHandleStyle" />; }
|
||||||
|
</var:if><var:if condition="verticalDragHandleStyle">
|
||||||
|
DIV#rightDragHandle, DIV#messageContent
|
||||||
|
{ top: <var:string value="verticalDragHandleStyle" />; }
|
||||||
|
</var:if><var:if condition="mailboxContentStyle">
|
||||||
|
DIV#mailboxContent
|
||||||
|
{ height: <var:string value="mailboxContentStyle" />; }
|
||||||
|
</var:if>
|
||||||
|
</style>
|
||||||
<div class="menu" id="accountIconMenu">
|
<div class="menu" id="accountIconMenu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><var:string label:value="Subscribe..." /></li>
|
<li><var:string label:value="Subscribe..." /></li>
|
||||||
|
|
|
@ -8,6 +8,20 @@
|
||||||
xmlns:label="OGo:label"
|
xmlns:label="OGo:label"
|
||||||
className="UIxPageFrame"
|
className="UIxPageFrame"
|
||||||
title="title">
|
title="title">
|
||||||
|
<style type="text/css">
|
||||||
|
<var:if condition="horizontalDragHandleStyle">
|
||||||
|
DIV#verticalDragHandle, DIV#rightPanel
|
||||||
|
{ left: <var:string value="horizontalDragHandleStyle" />; }
|
||||||
|
DIV#leftPanel
|
||||||
|
{ width: <var:string value="horizontalDragHandleStyle" />; }
|
||||||
|
</var:if><var:if condition="verticalDragHandleStyle">
|
||||||
|
DIV#rightDragHandle, DIV#calendarView
|
||||||
|
{ top: <var:string value="verticalDragHandleStyle" />; }
|
||||||
|
</var:if><var:if condition="eventsListViewStyle">
|
||||||
|
DIV#eventsListView
|
||||||
|
{ height: <var:string value="eventsListViewStyle" />; }
|
||||||
|
</var:if>
|
||||||
|
</style>
|
||||||
<div class="preload" style="visibility: hidden;">
|
<div class="preload" style="visibility: hidden;">
|
||||||
<img rsrc:src="event-gradient.png"/>
|
<img rsrc:src="event-gradient.png"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,7 +38,7 @@ DIV#contactsListContent
|
||||||
top: 2.5em;
|
top: 2.5em;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 16em;
|
height: 15.5em;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
overflow-x: hidden; }
|
overflow-x: hidden; }
|
||||||
|
|
||||||
|
@ -169,7 +169,8 @@ DIV#folderTreeContent TABLE TD
|
||||||
padding: 0px; }
|
padding: 0px; }
|
||||||
|
|
||||||
TABLE#contactsList
|
TABLE#contactsList
|
||||||
{ -khtml-user-select: none;
|
{ -moz-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
TABLE#contactsList TD,
|
TABLE#contactsList TD,
|
||||||
|
@ -249,13 +250,11 @@ INPUT#searchValue:focus
|
||||||
|
|
||||||
/* drag handles */
|
/* drag handles */
|
||||||
DIV#dragHandle
|
DIV#dragHandle
|
||||||
{
|
{ cursor: e-resize;
|
||||||
cursor: e-resize;
|
|
||||||
top: 8em;
|
top: 8em;
|
||||||
left: 15em;
|
left: 15em;
|
||||||
width: 5px;
|
width: 5px;
|
||||||
bottom: 0px;
|
bottom: 0px; }
|
||||||
}
|
|
||||||
|
|
||||||
DIV#rightDragHandle
|
DIV#rightDragHandle
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,8 +46,8 @@ function openContactsFolder(contactsFolder, reload, idx) {
|
||||||
var contactsList = $("contactsList");
|
var contactsList = $("contactsList");
|
||||||
if (contactsList)
|
if (contactsList)
|
||||||
selection = contactsList.getSelectedRowsId();
|
selection = contactsList.getSelectedRowsId();
|
||||||
// else
|
// else
|
||||||
// window.alert("no contactsList");
|
// window.alert("no contactsList");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
selection = null;
|
selection = null;
|
||||||
|
@ -86,7 +86,15 @@ function contactsListCallback(http) {
|
||||||
var tbody = table.tBodies[0];
|
var tbody = table.tBodies[0];
|
||||||
var tmp = document.createElement('div');
|
var tmp = document.createElement('div');
|
||||||
$(tmp).update(html);
|
$(tmp).update(html);
|
||||||
table.replaceChild(tmp.firstChild.tBodies[0], tbody);
|
table.replaceChild($(tmp).select("table tbody")[0], tbody);
|
||||||
|
|
||||||
|
var rows = table.tBodies[0].rows;
|
||||||
|
for (var i = 0; i < rows.length; i++) {
|
||||||
|
Event.observe(rows[i], "mousedown", onRowClick);
|
||||||
|
Event.observe(rows[i], "dblclick", onContactRowDblClick.bindAsEventListener(rows[i]));
|
||||||
|
Event.observe(rows[i], "selectstart", listRowMouseDownHandler);
|
||||||
|
Event.observe(rows[i], "contextmenu", onContactContextMenu.bindAsEventListener(rows[i]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Add table (doesn't happen .. yet)
|
// Add table (doesn't happen .. yet)
|
||||||
|
@ -113,7 +121,7 @@ function contactsListCallback(http) {
|
||||||
sortHeader = null;
|
sortHeader = null;
|
||||||
|
|
||||||
if (sortHeader) {
|
if (sortHeader) {
|
||||||
var sortImages = $(table.tHead).getElementsByClassName("sortImage");
|
var sortImages = $(table.tHead).select(".sortImage");
|
||||||
$(sortImages).each(function(item) {
|
$(sortImages).each(function(item) {
|
||||||
item.remove();
|
item.remove();
|
||||||
});
|
});
|
||||||
|
@ -139,7 +147,7 @@ function contactsListCallback(http) {
|
||||||
else {
|
else {
|
||||||
var table = $("contactsList");
|
var table = $("contactsList");
|
||||||
if (table) {
|
if (table) {
|
||||||
var sortImages = $(table.tHead).getElementsByClassName("sortImage");
|
var sortImages = $(table.tHead).select(".sortImage");
|
||||||
$(sortImages).each(function(item) {
|
$(sortImages).each(function(item) {
|
||||||
item.remove();
|
item.remove();
|
||||||
});
|
});
|
||||||
|
@ -156,7 +164,6 @@ function contactsListCallback(http) {
|
||||||
|
|
||||||
function onContactFoldersContextMenu(event) {
|
function onContactFoldersContextMenu(event) {
|
||||||
var menu = $("contactFoldersMenu");
|
var menu = $("contactFoldersMenu");
|
||||||
//Event.observe(menu, "hideMenu", onContactFoldersContextMenuHide, false);
|
|
||||||
Event.observe(menu, "mousedown", onContactFoldersContextMenuHide, false);
|
Event.observe(menu, "mousedown", onContactFoldersContextMenuHide, false);
|
||||||
popupMenu(event, "contactFoldersMenu", this);
|
popupMenu(event, "contactFoldersMenu", this);
|
||||||
|
|
||||||
|
@ -169,19 +176,18 @@ function onContactFoldersContextMenu(event) {
|
||||||
$(this).selectElement();
|
$(this).selectElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onContactContextMenu(event, element) {// log ("onContactContextMenu");
|
function onContactContextMenu(event) {
|
||||||
var menu = $("contactMenu");
|
var menu = $("contactMenu");
|
||||||
|
var topNode = $('contactsList');
|
||||||
Event.observe(menu, "mousedown", onContactContextMenuHide, false);
|
|
||||||
popupMenu(event, "contactMenu", element);
|
|
||||||
|
|
||||||
var topNode = $("contactsList");
|
|
||||||
var selectedNodes = topNode.getSelectedRows();
|
var selectedNodes = topNode.getSelectedRows();
|
||||||
topNode.menuSelectedRows = selectedNodes;
|
|
||||||
for (var i = 0; i < selectedNodes.length; i++)
|
if (selectedNodes.length > 1) {
|
||||||
$(selectedNodes[i]).deselect();
|
// TODO: Add support for selection of multiple contacts
|
||||||
topNode.menuSelectedEntry = element;
|
}
|
||||||
$(element).selectElement();
|
else {
|
||||||
|
Event.observe(menu, "hideMenu", onContactContextMenuHide);
|
||||||
|
popupMenu(event, "contactMenu", this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onContactContextMenuHide(event) {
|
function onContactContextMenuHide(event) {
|
||||||
|
@ -287,14 +293,8 @@ function moveTo(uri) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* contact menu entries */
|
/* contact menu entries */
|
||||||
function onContactRowClick(event, node) {
|
function onContactRowDblClick(event) {
|
||||||
loadContact(node.getAttribute('id'));
|
var contactId = this.getAttribute('id');
|
||||||
|
|
||||||
return onRowClick(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
function onContactRowDblClick(event, node) {
|
|
||||||
var contactId = node.getAttribute('id');
|
|
||||||
|
|
||||||
openContactWindow(URLForFolderID(currentContactFolder)
|
openContactWindow(URLForFolderID(currentContactFolder)
|
||||||
+ "/" + contactId + "/edit", contactId);
|
+ "/" + contactId + "/edit", contactId);
|
||||||
|
@ -302,6 +302,18 @@ function onContactRowDblClick(event, node) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function onContactSelectionChange(event) {
|
||||||
|
var rows = this.getSelectedRowsId();
|
||||||
|
|
||||||
|
if (rows.length == 1) {
|
||||||
|
var node = $(rows[0]);
|
||||||
|
loadContact(node.getAttribute('id'));
|
||||||
|
}
|
||||||
|
else if (rows.length > 1) {
|
||||||
|
$('contactView').update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function onMenuEditContact(event) {
|
function onMenuEditContact(event) {
|
||||||
var contactId = document.menuTarget.getAttribute('id');
|
var contactId = document.menuTarget.getAttribute('id');
|
||||||
|
|
||||||
|
@ -386,7 +398,6 @@ function uixDeleteSelectedContacts(sender) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var contactView = $('contactView');
|
var contactView = $('contactView');
|
||||||
contactView.update();
|
|
||||||
|
|
||||||
for (var i = 0; i < rows.length; i++) {
|
for (var i = 0; i < rows.length; i++) {
|
||||||
var url, http, rowElem;
|
var url, http, rowElem;
|
||||||
|
@ -414,7 +425,9 @@ function uixDeleteSelectedContacts(sender) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (failCount > 0)
|
if (failCount > 0)
|
||||||
alert("Could not delete the selected contacts!");
|
alert(labels["You cannot delete the selected contact(s)."]);
|
||||||
|
else
|
||||||
|
contactView.update();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -714,8 +727,8 @@ function configureAbToolbar() {
|
||||||
function configureContactFolders() {
|
function configureContactFolders() {
|
||||||
var contactFolders = $("contactFolders");
|
var contactFolders = $("contactFolders");
|
||||||
if (contactFolders) {
|
if (contactFolders) {
|
||||||
Event.observe(contactFolders, "mousedown", listRowMouseDownHandler);
|
contactFolders.observe("mousedown", listRowMouseDownHandler);
|
||||||
Event.observe(contactFolders, "click", onFolderSelectionChange);
|
contactFolders.observe("click", onFolderSelectionChange);
|
||||||
var lis = contactFolders.childNodesWithTag("li");
|
var lis = contactFolders.childNodesWithTag("li");
|
||||||
for (var i = 0; i < lis.length; i++)
|
for (var i = 0; i < lis.length; i++)
|
||||||
setEventsOnContactFolder(lis[i]);
|
setEventsOnContactFolder(lis[i]);
|
||||||
|
@ -728,11 +741,13 @@ function configureContactFolders() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setEventsOnContactFolder(node) {
|
function setEventsOnContactFolder(folder) {
|
||||||
Event.observe(node, "mousedown", listRowMouseDownHandler, false);
|
var node = $(folder);
|
||||||
Event.observe(node, "click", onRowClick, false);
|
|
||||||
|
node.observe("mousedown", listRowMouseDownHandler);
|
||||||
|
node.observe("click", onRowClick);
|
||||||
Event.observe(node, "contextmenu",
|
Event.observe(node, "contextmenu",
|
||||||
onContactFoldersContextMenu.bindAsEventListener(node), false);
|
onContactFoldersContextMenu.bindAsEventListener(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMenuModify(event) {
|
function onMenuModify(event) {
|
||||||
|
@ -763,31 +778,6 @@ function folderRenameCallback(http) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDragHandlesState() {
|
|
||||||
var urlstr = ApplicationBaseURL + "dragHandlesState";
|
|
||||||
triggerAjaxRequest(urlstr, getDragHandlesStateCallback);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getDragHandlesStateCallback(http) {
|
|
||||||
if (http.status == 200) {
|
|
||||||
if (http.responseText.length > 0) {
|
|
||||||
// The response text is a JSON array
|
|
||||||
// of the top and right offsets.
|
|
||||||
var data = http.responseText.evalJSON(true);
|
|
||||||
if (data[0].length > 0) {
|
|
||||||
$("contactsListContent").setStyle({ height: data[0] });
|
|
||||||
$("contactView").setStyle({ top: data[0] });
|
|
||||||
$("rightDragHandle").setStyle({ top: data[0] });
|
|
||||||
}
|
|
||||||
if (data[1].length > 0) {
|
|
||||||
$("contactFoldersList").setStyle({ width: data[1] });
|
|
||||||
$("rightPanel").setStyle({ left: data[1] });
|
|
||||||
$("dragHandle").setStyle({ left: data[1] });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onMenuSharing(event) {
|
function onMenuSharing(event) {
|
||||||
if ($(this).hasClassName("disabled"))
|
if ($(this).hasClassName("disabled"))
|
||||||
return;
|
return;
|
||||||
|
@ -880,10 +870,10 @@ function configureSelectionButtons() {
|
||||||
function initContacts(event) {
|
function initContacts(event) {
|
||||||
if (!document.body.hasClassName("popup")) {
|
if (!document.body.hasClassName("popup")) {
|
||||||
configureAbToolbar();
|
configureAbToolbar();
|
||||||
getDragHandlesState();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
configureSelectionButtons();
|
configureSelectionButtons();
|
||||||
|
|
||||||
configureContactFolders();
|
configureContactFolders();
|
||||||
// initDnd();
|
// initDnd();
|
||||||
|
|
||||||
|
@ -891,6 +881,8 @@ function initContacts(event) {
|
||||||
if (table) {
|
if (table) {
|
||||||
// Initialize contacts table
|
// Initialize contacts table
|
||||||
table.multiselect = true;
|
table.multiselect = true;
|
||||||
|
Event.observe(table, "mousedown",
|
||||||
|
onContactSelectionChange.bindAsEventListener(table));
|
||||||
configureSortableTableHeaders(table);
|
configureSortableTableHeaders(table);
|
||||||
TableKit.Resizable.init(table, {'trueResize' : true, 'keepWidth' : true});
|
TableKit.Resizable.init(table, {'trueResize' : true, 'keepWidth' : true});
|
||||||
}
|
}
|
||||||
|
|
|
@ -626,22 +626,18 @@ TABLE#messageList TR[labels~="label1"]._selected TD
|
||||||
|
|
||||||
/* drag handles */
|
/* drag handles */
|
||||||
DIV#verticalDragHandle
|
DIV#verticalDragHandle
|
||||||
{
|
{ cursor: e-resize;
|
||||||
cursor: e-resize;
|
|
||||||
top: 7.5em;
|
top: 7.5em;
|
||||||
left: 15em;
|
left: 15em;
|
||||||
width: 5px;
|
width: 5px;
|
||||||
bottom: 0px;
|
bottom: 0px; }
|
||||||
}
|
|
||||||
|
|
||||||
DIV#rightDragHandle
|
DIV#rightDragHandle
|
||||||
{
|
{ cursor: n-resize;
|
||||||
cursor: n-resize;
|
|
||||||
top: 18em;
|
top: 18em;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 5px;
|
height: 5px; }
|
||||||
}
|
|
||||||
|
|
||||||
@media print
|
@media print
|
||||||
{
|
{
|
||||||
|
|
|
@ -558,7 +558,7 @@ function messageListCallback(http) {
|
||||||
var sortHeader = $(sorting["attribute"] + "Header");
|
var sortHeader = $(sorting["attribute"] + "Header");
|
||||||
|
|
||||||
if (sortHeader) {
|
if (sortHeader) {
|
||||||
var sortImages = $(table.tHead).getElementsByClassName("sortImage");
|
var sortImages = $(table.tHead).select(".sortImage");
|
||||||
$(sortImages).each(function(item) {
|
$(sortImages).each(function(item) {
|
||||||
item.remove();
|
item.remove();
|
||||||
});
|
});
|
||||||
|
@ -1259,7 +1259,6 @@ function initMailer(event) {
|
||||||
// initDnd();
|
// initDnd();
|
||||||
initMailboxTree();
|
initMailboxTree();
|
||||||
initMessageCheckTimer();
|
initMessageCheckTimer();
|
||||||
getDragHandlesState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default sort options
|
// Default sort options
|
||||||
|
@ -1493,31 +1492,6 @@ function buildMailboxes(accountName, encoded) {
|
||||||
return account;
|
return account;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDragHandlesState() {
|
|
||||||
var urlstr = ApplicationBaseURL + "dragHandlesState";
|
|
||||||
triggerAjaxRequest(urlstr, getDragHandlesStateCallback);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getDragHandlesStateCallback(http) {
|
|
||||||
if (http.status == 200) {
|
|
||||||
if (http.responseText.length > 0) {
|
|
||||||
// The response text is a JSON array
|
|
||||||
// of the top and right offsets.
|
|
||||||
var data = http.responseText.evalJSON(true);
|
|
||||||
if (data[0].length > 0) {
|
|
||||||
$("mailboxContent").setStyle({ height: data[0] });
|
|
||||||
$("messageContent").setStyle({ top: data[0] });
|
|
||||||
$("rightDragHandle").setStyle({ top: data[0] });
|
|
||||||
}
|
|
||||||
if (data[1].length > 0) {
|
|
||||||
$("leftPanel").setStyle({ width: data[1] });
|
|
||||||
$("rightPanel").setStyle({ left: data[1] });
|
|
||||||
$("verticalDragHandle").setStyle({ left: data[1] });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function getFoldersState() {
|
function getFoldersState() {
|
||||||
if (mailAccounts.length > 0) {
|
if (mailAccounts.length > 0) {
|
||||||
var urlstr = ApplicationBaseURL + "foldersState";
|
var urlstr = ApplicationBaseURL + "foldersState";
|
||||||
|
|
|
@ -70,7 +70,7 @@ var SOGoDragHandlesInterface = {
|
||||||
this.rightBlock.setStyle({ left: (this.origRight + deltaX) + 'px' });
|
this.rightBlock.setStyle({ left: (this.origRight + deltaX) + 'px' });
|
||||||
this.leftBlock.setStyle({ width: (this.origLeft + deltaX) + 'px' });
|
this.leftBlock.setStyle({ width: (this.origLeft + deltaX) + 'px' });
|
||||||
}
|
}
|
||||||
this.saveDragHandleState(this.dhType, this.leftBlock.getStyle("width"));
|
this.saveDragHandleState(this.dhType, parseInt(this.leftBlock.getStyle("width")));
|
||||||
}
|
}
|
||||||
else if (this.dhType == 'vertical') {
|
else if (this.dhType == 'vertical') {
|
||||||
var pointerY = Event.pointerY(event);
|
var pointerY = Event.pointerY(event);
|
||||||
|
@ -83,7 +83,7 @@ var SOGoDragHandlesInterface = {
|
||||||
this.lowerBlock.setStyle({ top: (this.origLower + deltaY - delta) + 'px' });
|
this.lowerBlock.setStyle({ top: (this.origLower + deltaY - delta) + 'px' });
|
||||||
this.upperBlock.setStyle({ height: (this.origUpper + deltaY - delta) + 'px' });
|
this.upperBlock.setStyle({ height: (this.origUpper + deltaY - delta) + 'px' });
|
||||||
}
|
}
|
||||||
this.saveDragHandleState(this.dhType, this.upperBlock.getStyle("height"));
|
this.saveDragHandleState(this.dhType, parseInt(this.lowerBlock.getStyle("top")));
|
||||||
}
|
}
|
||||||
Event.stopObserving(document.body, "mouseup", this.stopHandleDraggingBound, true);
|
Event.stopObserving(document.body, "mouseup", this.stopHandleDraggingBound, true);
|
||||||
Event.stopObserving(document.body, "mousemove", this.moveBound, true);
|
Event.stopObserving(document.body, "mousemove", this.moveBound, true);
|
||||||
|
|
|
@ -385,7 +385,7 @@ function eventsListCallback(http) {
|
||||||
var sortHeader = $(sorting["attribute"] + "Header");
|
var sortHeader = $(sorting["attribute"] + "Header");
|
||||||
|
|
||||||
if (sortHeader) {
|
if (sortHeader) {
|
||||||
var sortImages = $(table.tHead).getElementsByClassName("sortImage");
|
var sortImages = $(table.tHead).select(".sortImage");
|
||||||
$(sortImages).each(function(item) {
|
$(sortImages).each(function(item) {
|
||||||
item.remove();
|
item.remove();
|
||||||
});
|
});
|
||||||
|
@ -698,15 +698,16 @@ function refreshCalendarEvents(scrollEvent) {
|
||||||
function refreshCalendarEventsCallback(http) {
|
function refreshCalendarEventsCallback(http) {
|
||||||
if (http.readyState == 4
|
if (http.readyState == 4
|
||||||
&& http.status == 200) {
|
&& http.status == 200) {
|
||||||
|
|
||||||
if (http.responseText.length > 0) {
|
if (http.responseText.length > 0) {
|
||||||
var data = http.responseText.evalJSON(true);
|
var data = http.responseText.evalJSON(true);
|
||||||
// log("refresh calendar events: " + data.length);
|
// log("refresh calendar events: " + data.length);
|
||||||
for (var i = 0; i < data.length; i++)
|
var dateTuples = new Array();
|
||||||
|
for (var i = 0; i < data.length; i++) {
|
||||||
drawCalendarEvent(data[i],
|
drawCalendarEvent(data[i],
|
||||||
http.callbackData["startDate"],
|
http.callbackData["startDate"],
|
||||||
http.callbackData["endDate"]);
|
http.callbackData["endDate"]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
scrollDayView(http.callbackData["scrollEvent"]);
|
scrollDayView(http.callbackData["scrollEvent"]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -722,7 +723,7 @@ function drawCalendarEvent(eventData, sd, ed) {
|
||||||
var endDate = new Date();
|
var endDate = new Date();
|
||||||
endDate.setTime(eventData[5] * 1000);
|
endDate.setTime(eventData[5] * 1000);
|
||||||
|
|
||||||
// log ("s: " + startDate + "; e: " + endDate);
|
//log ("s: " + startDate + "; e: " + endDate);
|
||||||
|
|
||||||
var days = startDate.daysUpTo(endDate);
|
var days = startDate.daysUpTo(endDate);
|
||||||
|
|
||||||
|
@ -773,7 +774,7 @@ function drawCalendarEvent(eventData, sd, ed) {
|
||||||
siblings.push(eventDiv);
|
siblings.push(eventDiv);
|
||||||
eventDiv.siblings = siblings;
|
eventDiv.siblings = siblings;
|
||||||
if (eventData[9].length > 0)
|
if (eventData[9].length > 0)
|
||||||
eventDiv.addClassName(eventData[9]);
|
eventDiv.addClassName(eventData[9]); // event owner status
|
||||||
var dayString = days[i].getDayString();
|
var dayString = days[i].getDayString();
|
||||||
// log("day: " + dayString);
|
// log("day: " + dayString);
|
||||||
var parentDiv = null;
|
var parentDiv = null;
|
||||||
|
@ -1723,31 +1724,6 @@ function deletePersonalCalendarCallback(http) {
|
||||||
log ("ajax problem 5: " + http.status);
|
log ("ajax problem 5: " + http.status);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDragHandlesState() {
|
|
||||||
var urlstr = ApplicationBaseURL + "dragHandlesState";
|
|
||||||
triggerAjaxRequest(urlstr, getDragHandlesStateCallback);
|
|
||||||
}
|
|
||||||
|
|
||||||
function getDragHandlesStateCallback(http) {
|
|
||||||
if (http.status == 200) {
|
|
||||||
if (http.responseText.length > 0) {
|
|
||||||
// The response text is a JSON array
|
|
||||||
// of the top and right offsets.
|
|
||||||
var data = http.responseText.evalJSON(true);
|
|
||||||
if (data[0].length > 0) {
|
|
||||||
$("eventsListView").setStyle({ height: data[0] });
|
|
||||||
$("calendarView").setStyle({ top: data[0] });
|
|
||||||
$("rightDragHandle").setStyle({ top: data[0] });
|
|
||||||
}
|
|
||||||
if (data[1].length > 0) {
|
|
||||||
$("leftPanel").setStyle({ width: data[1] });
|
|
||||||
$("rightPanel").setStyle({ left: data[1] });
|
|
||||||
$("verticalDragHandle").setStyle({ left: data[1] });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function configureLists() {
|
function configureLists() {
|
||||||
var list = $("tasksList");
|
var list = $("tasksList");
|
||||||
list.multiselect = true;
|
list.multiselect = true;
|
||||||
|
@ -1787,7 +1763,6 @@ function initCalendars() {
|
||||||
sorting["ascending"] = true;
|
sorting["ascending"] = true;
|
||||||
|
|
||||||
if (!document.body.hasClassName("popup")) {
|
if (!document.body.hasClassName("popup")) {
|
||||||
getDragHandlesState();
|
|
||||||
initDateSelectorEvents();
|
initDateSelectorEvents();
|
||||||
initCalendarSelector();
|
initCalendarSelector();
|
||||||
configureSearchField();
|
configureSearchField();
|
||||||
|
|
Loading…
Reference in a new issue