|
|
@ -31,9 +31,9 @@ jQuery(function($) { |
|
|
|
$container.find('a').on('click', function(e) { |
|
|
|
$container.find('a').on('click', function(e) { |
|
|
|
e.preventDefault(); |
|
|
|
e.preventDefault(); |
|
|
|
|
|
|
|
|
|
|
|
var authChoicePopup = null; |
|
|
|
var authChoicePopup = $container.data('authChoicePopup'); |
|
|
|
|
|
|
|
|
|
|
|
if (authChoicePopup = $container.data('authChoicePopup')) { |
|
|
|
if (authChoicePopup) { |
|
|
|
authChoicePopup.close(); |
|
|
|
authChoicePopup.close(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -49,13 +49,15 @@ jQuery(function($) { |
|
|
|
popupOptions.height = localPopupHeight; |
|
|
|
popupOptions.height = localPopupHeight; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
popupOptions.left = (window.screen.width - options.popup.width) / 2; |
|
|
|
popupOptions.left = (window.screen.width - popupOptions.width) / 2; |
|
|
|
popupOptions.top = (window.screen.height - options.popup.height) / 2; |
|
|
|
popupOptions.top = (window.screen.height - popupOptions.height) / 2; |
|
|
|
|
|
|
|
|
|
|
|
var popupFeatureParts = []; |
|
|
|
var popupFeatureParts = []; |
|
|
|
for (var propName in popupOptions) { |
|
|
|
for (var propName in popupOptions) { |
|
|
|
|
|
|
|
if (popupOptions.hasOwnProperty(propName)) { |
|
|
|
popupFeatureParts.push(propName + '=' + popupOptions[propName]); |
|
|
|
popupFeatureParts.push(propName + '=' + popupOptions[propName]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
var popupFeature = popupFeatureParts.join(','); |
|
|
|
var popupFeature = popupFeatureParts.join(','); |
|
|
|
|
|
|
|
|
|
|
|
authChoicePopup = window.open(url, 'yii_auth_choice', popupFeature); |
|
|
|
authChoicePopup = window.open(url, 'yii_auth_choice', popupFeature); |
|
|
|