From 33bb8a43e043d0bb7f7cf5edfd165f4665ece7ee Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Tue, 27 Sep 2011 14:44:44 +0100 Subject: [PATCH] Making the error state look reasonable. --- browserid/static/dialog/controllers/page_controller.js | 5 +---- browserid/static/dialog/css/popup.css | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/browserid/static/dialog/controllers/page_controller.js b/browserid/static/dialog/controllers/page_controller.js index 66a0747b8..1671bbce8 100644 --- a/browserid/static/dialog/controllers/page_controller.js +++ b/browserid/static/dialog/controllers/page_controller.js @@ -131,10 +131,7 @@ $("#error_dialog .title").text(info.message); $("#error_dialog .content").text(info.description); - $("#back").hide(); - $("input[type=submit]").hide(); - - $("#cancel").text("Close").addClass("action"); + $("body").removeClass("authenticated").addClass("error"); $("#error_dialog").fadeIn(500); }, diff --git a/browserid/static/dialog/css/popup.css b/browserid/static/dialog/css/popup.css index 6f1b31dd8..f92762820 100644 --- a/browserid/static/dialog/css/popup.css +++ b/browserid/static/dialog/css/popup.css @@ -78,6 +78,11 @@ h2 { position: relative; } +#error_dialog { + text-align: center; + margin: 100px auto; +} + .table { display: table; width: 100%; -- GitLab