Permalink
Browse files

Revert "Bug 824672 - Remove close button in error page, r=vivien,"

This reverts commit 0829fb5.
  • Loading branch information...
1 parent 12b7225 commit 085015cfd1b5a9db154d64cc1dc84c05ddf3ee68 @alivedise alivedise committed Dec 28, 2012
Showing with 8 additions and 1 deletion.
  1. +2 −1 apps/system/error.html
  2. +6 −0 apps/system/js/error.js
View
@@ -26,7 +26,8 @@ <h3 data-l10n-id="error-title" id="title"></h3>
<span data-l10n-id="error-message" id="message"></span>
</p>
</div>
- <menu data-items="1">
+ <menu data-items="2">
+ <button id="close" data-l10n-id="close"></button>
<button id="reload" data-l10n-id="try-again"></button>
</menu>
</div>
View
@@ -1,3 +1,8 @@
+
+function closeWindow() {
+ window.close();
+}
+
function reloadWindow(url) {
document.location.replace(url);
}
@@ -40,6 +45,7 @@ window.addEventListener('localized', function onload(e) {
break;
}
+ document.getElementById('close').onclick = closeWindow;
document.getElementById('reload').onclick = function() {
reloadWindow(params['origin']);
};

0 comments on commit 085015c

Please sign in to comment.