зеркало из 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;
|
var canHaveFilters = server.canHaveFilters;
|
||||||
SetItemDisplay("CreateFilters", canHaveFilters);
|
SetItemDisplay("CreateFilters", canHaveFilters);
|
||||||
|
|
||||||
|
// Subscribe to IMAP Folders
|
||||||
|
var canSubscribeImapFolders = msgFolder.canSubscribe && protocolInfo.canGetMessages;
|
||||||
|
SetItemDisplay("SubscribeImapFolders", canSubscribeImapFolders);
|
||||||
|
|
||||||
// Offline Settings
|
// Offline Settings
|
||||||
var supportsOffline = (server.offlineSupportLevel != 0);
|
var supportsOffline = (server.offlineSupportLevel != 0);
|
||||||
SetItemDisplay("OfflineSettings", supportsOffline);
|
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
|
// Display Adv Features header, only if any of the items are displayed
|
||||||
SetItemDisplay("AdvancedFeaturesHeader", displayAdvFeatures);
|
SetItemDisplay("AdvancedFeaturesHeader", displayAdvFeatures);
|
||||||
|
|
||||||
|
@ -249,7 +254,7 @@ function CreateMsgFilters()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open Subscribe dialog
|
// Open Subscribe dialog
|
||||||
function SubscribeNewsgroups()
|
function Subscribe()
|
||||||
{
|
{
|
||||||
window.parent.MsgSubscribe();
|
window.parent.MsgSubscribe();
|
||||||
}
|
}
|
||||||
|
@ -258,4 +263,4 @@ function SubscribeNewsgroups()
|
||||||
function JunkSettings()
|
function JunkSettings()
|
||||||
{
|
{
|
||||||
window.parent.MsgJunkMail();
|
window.parent.MsgJunkMail();
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ Rights Reserved.
|
||||||
<separator id="NewsHeader.separator" class="thin"/>
|
<separator id="NewsHeader.separator" class="thin"/>
|
||||||
<row id="SubscribeNewsgroups" class="acctCentralRow">
|
<row id="SubscribeNewsgroups" class="acctCentralRow">
|
||||||
<hbox>
|
<hbox>
|
||||||
<label class="acctCentralText acctCentralLinkText" value="&subscribeNewsLink.label;" onclick="SubscribeNewsgroups();"/>
|
<label class="acctCentralText acctCentralLinkText" value="&subscribeNewsLink.label;" onclick="Subscribe();"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<separator id="SubscribeNewsgroups.separator" class="thin"/>
|
<separator id="SubscribeNewsgroups.separator" class="thin"/>
|
||||||
|
@ -147,6 +147,12 @@ Rights Reserved.
|
||||||
<label class="acctCentralText acctCentralLinkText" value="&filtersLink.label;" onclick="CreateMsgFilters();"/>
|
<label class="acctCentralText acctCentralLinkText" value="&filtersLink.label;" onclick="CreateMsgFilters();"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</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"/>
|
<separator id="CreateFilters.separator" class="thin"/>
|
||||||
<row id="OfflineSettings" class="acctCentralRow">
|
<row id="OfflineSettings" class="acctCentralRow">
|
||||||
<hbox>
|
<hbox>
|
||||||
|
|
|
@ -30,6 +30,7 @@ Contributor(s):
|
||||||
<!ENTITY subscribeNewsLink.label "Subscribe to newsgroups">
|
<!ENTITY subscribeNewsLink.label "Subscribe to newsgroups">
|
||||||
|
|
||||||
<!ENTITY accountsSectionHdr.label "Accounts">
|
<!ENTITY accountsSectionHdr.label "Accounts">
|
||||||
|
<!ENTITY subscribeImapFolders.label "Subscribe to folders">
|
||||||
<!ENTITY settingsLink.label "View settings for this account">
|
<!ENTITY settingsLink.label "View settings for this account">
|
||||||
<!ENTITY newAcctLink.label "Create a new 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");
|
list-style-image: url("chrome://messenger/skin/icons/acct-subscribe.gif");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#SubscribeImapFolders {
|
||||||
|
list-style-image: url("chrome://messenger/skin/icons/acct-subscribe.gif");
|
||||||
|
}
|
||||||
|
|
||||||
#SearchMessages {
|
#SearchMessages {
|
||||||
list-style-image: url("chrome://messenger/skin/icons/acct-search.gif");
|
list-style-image: url("chrome://messenger/skin/icons/acct-search.gif");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче