зеркало из https://github.com/mozilla/pjs.git
Bug 129104 account central for imap server should have subscribe option just like news
patch by borggraefe@despammed.com r=timeless sr=bienvenu
This commit is contained in:
Родитель
61783f20d3
Коммит
9cdd31dd23
|
@ -148,11 +148,16 @@ function ArrangeAccountCentralItems(server, protocolInfo, msgFolder)
|
|||
var canHaveFilters = server.canHaveFilters;
|
||||
SetItemDisplay("CreateFilters", canHaveFilters);
|
||||
|
||||
// Subscribe to IMAP Folders
|
||||
var canSubscribeImapFolders = msgFolder.canSubscribe && protocolInfo.canGetMessages;
|
||||
SetItemDisplay("SubscribeImapFolders", canSubscribeImapFolders);
|
||||
|
||||
// Offline Settings
|
||||
var supportsOffline = (server.offlineSupportLevel != 0);
|
||||
SetItemDisplay("OfflineSettings", supportsOffline);
|
||||
|
||||
var displayAdvFeatures = canSearchMessages || canHaveFilters || supportsOffline;
|
||||
var displayAdvFeatures = canSearchMessages || canHaveFilters ||
|
||||
canSubscribeImapFolders|| supportsOffline;
|
||||
// Display Adv Features header, only if any of the items are displayed
|
||||
SetItemDisplay("AdvancedFeaturesHeader", displayAdvFeatures);
|
||||
|
||||
|
@ -249,7 +254,7 @@ function CreateMsgFilters()
|
|||
}
|
||||
|
||||
// Open Subscribe dialog
|
||||
function SubscribeNewsgroups()
|
||||
function Subscribe()
|
||||
{
|
||||
window.parent.MsgSubscribe();
|
||||
}
|
||||
|
@ -258,4 +263,4 @@ function SubscribeNewsgroups()
|
|||
function JunkSettings()
|
||||
{
|
||||
window.parent.MsgJunkMail();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ Rights Reserved.
|
|||
<separator id="NewsHeader.separator" class="thin"/>
|
||||
<row id="SubscribeNewsgroups" class="acctCentralRow">
|
||||
<hbox>
|
||||
<label class="acctCentralText acctCentralLinkText" value="&subscribeNewsLink.label;" onclick="SubscribeNewsgroups();"/>
|
||||
<label class="acctCentralText acctCentralLinkText" value="&subscribeNewsLink.label;" onclick="Subscribe();"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<separator id="SubscribeNewsgroups.separator" class="thin"/>
|
||||
|
@ -147,6 +147,12 @@ Rights Reserved.
|
|||
<label class="acctCentralText acctCentralLinkText" value="&filtersLink.label;" onclick="CreateMsgFilters();"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<separator id="SubscribeImapFolders.separator" class="thin"/>
|
||||
<row id="SubscribeImapFolders" class="acctCentralRow">
|
||||
<hbox>
|
||||
<label class="acctCentralText acctCentralLinkText" value="&subscribeImapFolders.label;" onclick="Subscribe();"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<separator id="CreateFilters.separator" class="thin"/>
|
||||
<row id="OfflineSettings" class="acctCentralRow">
|
||||
<hbox>
|
||||
|
|
|
@ -30,6 +30,7 @@ Contributor(s):
|
|||
<!ENTITY subscribeNewsLink.label "Subscribe to newsgroups">
|
||||
|
||||
<!ENTITY accountsSectionHdr.label "Accounts">
|
||||
<!ENTITY subscribeImapFolders.label "Subscribe to folders">
|
||||
<!ENTITY settingsLink.label "View settings for this account">
|
||||
<!ENTITY newAcctLink.label "Create a new account">
|
||||
|
||||
|
|
|
@ -113,6 +113,10 @@ separator.thin {
|
|||
list-style-image: url("chrome://messenger/skin/icons/acct-subscribe.gif");
|
||||
}
|
||||
|
||||
#SubscribeImapFolders {
|
||||
list-style-image: url("chrome://messenger/skin/icons/acct-subscribe.gif");
|
||||
}
|
||||
|
||||
#SearchMessages {
|
||||
list-style-image: url("chrome://messenger/skin/icons/acct-search.gif");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче