From 3435494a41f030de9fe080ca646a8265599a9c6b Mon Sep 17 00:00:00 2001 From: Bernd Loeber Date: Sat, 26 Apr 2014 08:32:00 -0400 Subject: [PATCH] Bug 980911 - Rewrite inline script/style in browser/base/content/aboutaccounts/aboutaccounts.xhtml (about:accounts). r=ttaubert --- browser/base/content/aboutaccounts/aboutaccounts.js | 8 ++++++++ browser/base/content/aboutaccounts/aboutaccounts.xhtml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/browser/base/content/aboutaccounts/aboutaccounts.js b/browser/base/content/aboutaccounts/aboutaccounts.js index 7f442cb8f150..94f795834157 100644 --- a/browser/base/content/aboutaccounts/aboutaccounts.js +++ b/browser/base/content/aboutaccounts/aboutaccounts.js @@ -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() { diff --git a/browser/base/content/aboutaccounts/aboutaccounts.xhtml b/browser/base/content/aboutaccounts/aboutaccounts.xhtml index f49b4a065e53..0a239437eacb 100644 --- a/browser/base/content/aboutaccounts/aboutaccounts.xhtml +++ b/browser/base/content/aboutaccounts/aboutaccounts.xhtml @@ -46,7 +46,7 @@
- &aboutAccountsConfig.manage.label; + &aboutAccountsConfig.manage.label;
@@ -62,11 +62,11 @@
&aboutAccountsConfig.description;
- &aboutAccountsConfig.startButton.label; + &aboutAccountsConfig.startButton.label;