mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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});
|
||||
};
|
||||
}) ();
|
||||
|
||||
Reference in New Issue
Block a user