This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 832924 - [Email] Support POP3 accounts. r=asuth
- Loading branch information
Showing
29 changed files
with
16,889 additions
and
3,424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<form role="dialog" class="msg-large-message-confirm" data-type="confirm"> | ||
<section> | ||
<h1 data-l10n-id="confirm-dialog-title">ConfirmatioN</h1> | ||
<p><span data-l10n-id="message-large-message-confirm"></span></p> | ||
</section> | ||
<menu> | ||
<button id="msg-large-message-cancel" data-l10n-id="message-large-message-cancel">CanceL</button> | ||
<button id="msg-large-message-ok" data-l10n-id="message-large-message-ok">OK</button> | ||
</menu> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div class="card-setup-fix-gmail card"> | ||
<div class="sup-account-header top-header"> | ||
<h2 class="sup-account-header-label header-label">ImaP/PoP3 DisableD</h2> | ||
</div> | ||
<div class="scrollregion-below-header"> | ||
<h2 class="sup-enable-label sup-form-label">EnablE ImaP/PoP3</h2> | ||
<span class="sup-gmail-account"></span> | ||
|
||
<button class="sup-dismiss-btn sup-form-btn">RetrY</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/*global define*/ | ||
define(function(require) { | ||
|
||
var templateNode = require('tmpl!./setup_fix_gmail.html'), | ||
common = require('mail_common'), | ||
mozL10n = require('l10n!'), | ||
Cards = common.Cards; | ||
|
||
/** | ||
* Tells the user how to enable IMAP/POP3 for Gmail | ||
*/ | ||
function SetupFixGmail(domNode, mode, args) { | ||
this.domNode = domNode; | ||
this.account = args.account; | ||
this.restoreCard = args.restoreCard; | ||
|
||
var accountNode = | ||
domNode.getElementsByClassName('sup-gmail-account')[0]; | ||
accountNode.textContent = this.account.name; | ||
|
||
var incomingType = (this.account.type === 'imap+smtp' ? 'imap' : 'pop3'); | ||
domNode.getElementsByClassName('sup-account-header-label')[0].textCountent = | ||
mozL10n.get('setup-gmail-' + incomingType + '-header'); | ||
domNode.getElementsByClassName('sup-enable-label')[0].textCountent = | ||
mozL10n.get('setup-gmail-' + incomingType + '-message'); | ||
domNode.getElementsByClassName('sup-dismiss-btn')[0].textCountent = | ||
mozL10n.get('setup-gmail-' + incomingType + '-retry'); | ||
|
||
var useButton = domNode.getElementsByClassName('sup-dismiss-btn')[0]; | ||
useButton.addEventListener('click', this.onDismiss.bind(this), false); | ||
} | ||
SetupFixGmail.prototype = { | ||
die: function() { | ||
// no special cleanup required | ||
}, | ||
|
||
onDismiss: function() { | ||
this.account.clearProblems(); | ||
Cards.removeCardAndSuccessors(this.domNode, 'animate', 1, | ||
this.restoreCard); | ||
} | ||
}; | ||
Cards.defineCardWithDefaultMode( | ||
'setup_fix_gmail', | ||
{ tray: false }, | ||
SetupFixGmail, | ||
templateNode | ||
); | ||
|
||
return SetupFixGmail; | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.