mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Merge pull request #2167 from riking/higher-facebook
Make Facebook login popup taller
This commit is contained in:
commit
cdeb7445dc
1 changed files with 4 additions and 2 deletions
|
@ -37,13 +37,15 @@ Discourse.LoginMethod.reopenClass({
|
|||
"yahoo",
|
||||
"github"
|
||||
].forEach(function(name){
|
||||
if(Discourse.SiteSettings["enable_" + name + "_logins"]){
|
||||
if (Discourse.SiteSettings["enable_" + name + "_logins"]) {
|
||||
|
||||
var params = {name: name};
|
||||
|
||||
if(name === "google") {
|
||||
if (name === "google") {
|
||||
params.frameWidth = 850;
|
||||
params.frameHeight = 500;
|
||||
} else if (name === "facebook") {
|
||||
params.frameHeight = 450;
|
||||
}
|
||||
|
||||
methods.pushObject(Discourse.LoginMethod.create(params));
|
||||
|
|
Loading…
Reference in a new issue