Make Facebook login popup taller
This commit is contained in:
parent
a3344a6be3
commit
c978eade56
|
@ -37,13 +37,15 @@ Discourse.LoginMethod.reopenClass({
|
||||||
"yahoo",
|
"yahoo",
|
||||||
"github"
|
"github"
|
||||||
].forEach(function(name){
|
].forEach(function(name){
|
||||||
if(Discourse.SiteSettings["enable_" + name + "_logins"]){
|
if (Discourse.SiteSettings["enable_" + name + "_logins"]) {
|
||||||
|
|
||||||
var params = {name: name};
|
var params = {name: name};
|
||||||
|
|
||||||
if(name === "google") {
|
if (name === "google") {
|
||||||
params.frameWidth = 850;
|
params.frameWidth = 850;
|
||||||
params.frameHeight = 500;
|
params.frameHeight = 500;
|
||||||
|
} else if (name === "facebook") {
|
||||||
|
params.frameHeight = 420;
|
||||||
}
|
}
|
||||||
|
|
||||||
methods.pushObject(Discourse.LoginMethod.create(params));
|
methods.pushObject(Discourse.LoginMethod.create(params));
|
||||||
|
|
Loading…
Reference in New Issue