Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
add form class to body when authenticate screen shows
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Oct 24, 2012
1 parent 74d6596 commit 71d3381
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/static/dialog/js/modules/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ BrowserID.Modules.Authenticate = (function() {
RP_NAME_SELECTOR = "#rp_name",
BODY_SELECTOR = "body",
AUTHENTICATION_CLASS = "authentication",
FORM_CLASS = "form",
currentHint;

function getEmail() {
Expand Down Expand Up @@ -184,6 +185,7 @@ BrowserID.Modules.Authenticate = (function() {
var self=this;

dom.addClass(BODY_SELECTOR, AUTHENTICATION_CLASS);
dom.addClass(BODY_SELECTOR, FORM_CLASS);
dom.setInner(RP_NAME_SELECTOR, options.siteName);
dom.setInner(EMAIL_SELECTOR, lastEmail);

Expand Down Expand Up @@ -212,6 +214,7 @@ BrowserID.Modules.Authenticate = (function() {

stop: function() {
dom.removeClass(BODY_SELECTOR, AUTHENTICATION_CLASS);
dom.removeClass(BODY_SELECTOR, FORM_CLASS);
Module.sc.stop.call(this);
}

Expand Down

0 comments on commit 71d3381

Please sign in to comment.