Bug 980911 - Rewrite inline script/style in browser/base/content/aboutaccounts/aboutaccounts.xhtml (about:accounts). r=ttaubert

This commit is contained in:
Bernd Loeber 2014-04-26 08:32:00 -04:00
parent adc70f119a
commit 3435494a41
2 changed files with 11 additions and 3 deletions

View File

@ -344,6 +344,14 @@ function showManage() {
document.addEventListener("DOMContentLoaded", function onload() {
document.removeEventListener("DOMContentLoaded", onload, true);
init();
var buttonGetStarted = document.getElementById('buttonGetStarted');
buttonGetStarted.addEventListener('click', getStarted);
var oldsync = document.getElementById('oldsync');
oldsync.addEventListener('click', handleOldSync);
var buttonOpenPrefs = document.getElementById('buttonOpenPrefs')
buttonOpenPrefs.addEventListener('click', openPrefs);
}, true);
function initObservers() {

View File

@ -46,7 +46,7 @@
<div class="graphic graphic-sync-intro"> </div>
<div class="button-row">
<a class="button" href="#" onclick="openPrefs()">&aboutAccountsConfig.manage.label;</a>
<a id="buttonOpenPrefs" class="button" href="#">&aboutAccountsConfig.manage.label;</a>
</div>
</section>
</div>
@ -62,11 +62,11 @@
<div class="description">&aboutAccountsConfig.description;</div>
<div class="button-row">
<a class="button" href="#" onclick="getStarted()">&aboutAccountsConfig.startButton.label;</a>
<a id="buttonGetStarted" class="button" href="#">&aboutAccountsConfig.startButton.label;</a>
</div>
<div class="links">
<a id="oldsync" class="no-underline" href="#" onclick="handleOldSync();">&aboutAccountsConfig.useOldSync.label;</a>
<a id="oldsync" class="no-underline" href="#">&aboutAccountsConfig.useOldSync.label;</a>
</div>
</section>
</div>