Monotone-Parent: edb893da8ce0f655c7df27ce11022ddf6b26e6a0

Monotone-Revision: 0bad93574cbb34f80f8e581a8347fec75a28f612

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-09T13:30:21
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-08-09 13:30:21 +00:00
parent 549162ce51
commit fc12cf9fd9
4 changed files with 8 additions and 25 deletions
+7
View File
@@ -1,5 +1,12 @@
2010-08-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/UIxFilterEditor.js (loadMailboxes): the
first account is now always identitied with "0", therefore we no
longer need the "firstMailAccount" variable.
* UI/PreferencesUI/UIxFilterEditor.m (-firstMailAccount): removed
osbolete accessor.
* UI/WebServerResources/UIxPreferences.js: (onMailAccountAdd)
(onMailAccountDelete): set "hasChanged" to 1 when triggered.
(onColorPickerChoice): don't invoke "onChoiceChanged" as it is an
-22
View File
@@ -80,26 +80,4 @@
return filterId;
}
- (NSString *) firstMailAccount
{
NSArray *accounts;
NSDictionary *account;
NSString *login, *accountName;
SOGoUser *ownerUser;
login = [[self clientObject] nameInContainer];
ownerUser = [SOGoUser userWithLogin: login];
accounts = [ownerUser mailAccounts];
if ([accounts count] > 0)
{
account = [accounts objectAtIndex: 0];
accountName = [[account objectForKey: @"name"] asCSSIdentifier];
}
else
accountName = @"";
return accountName;
}
@end
@@ -13,7 +13,6 @@
>
<script type="text/javascript">
var filterId = '<var:string value="filterId"/>';
var firstMailAccount = '<var:string value="firstMailAccount"/>';
</script>
<form id="mainForm" var:href="ownPath">
<div id="filterNameContainer" class="container">
+1 -2
View File
@@ -38,8 +38,7 @@ function onLoadHandler() {
}
function loadMailboxes() {
var url = (ApplicationBaseURL + "Mail/"
+ encodeURI(firstMailAccount) + "/mailboxes");
var url = ApplicationBaseURL + "Mail/0/mailboxes";
triggerAjaxRequest(url, onLoadMailboxesCallback);
}