Tweak the height of the popup box. Meetup varies the height of their box based on which permissions are requested.

This commit is contained in:
Nick Martin
2013-03-11 20:52:52 -07:00
parent 4cd49f0d5f
commit 429aa690a4

View File

@@ -24,6 +24,12 @@
'&redirect_uri=' + Meteor.absoluteUrl('_oauth/meetup?close') +
'&state=' + state;
Accounts.oauth.initiateLogin(state, loginUrl, callback, {width: 900, height: 450});
// meetup box gets taller when permissions requested.
var height = 620;
if (_.without(scope, 'basic').length)
height += 130;
Accounts.oauth.initiateLogin(state, loginUrl, callback,
{width: 900, height: height});
};
}) ();