mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 03:15:25 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -38,8 +38,7 @@ function onLoadHandler() {
|
||||
}
|
||||
|
||||
function loadMailboxes() {
|
||||
var url = (ApplicationBaseURL + "Mail/"
|
||||
+ encodeURI(firstMailAccount) + "/mailboxes");
|
||||
var url = ApplicationBaseURL + "Mail/0/mailboxes";
|
||||
triggerAjaxRequest(url, onLoadMailboxesCallback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user