documentation update + code fixes
This commit is contained in:
@ -32,7 +32,7 @@ class ConnectWidget extends AuthChoice
|
||||
{
|
||||
AuthChoiceAsset::register(Yii::$app->view);
|
||||
if ($this->popupMode) {
|
||||
Yii::$app->view->registerJs("\$('#".$this->getId()."').authchoice();");
|
||||
Yii::$app->view->registerJs("\$('#" . $this->getId() . "').authchoice();");
|
||||
}
|
||||
$this->options['id'] = $this->getId();
|
||||
echo Html::beginTag('div', $this->options);
|
||||
@ -45,9 +45,9 @@ class ConnectWidget extends AuthChoice
|
||||
{
|
||||
if ($this->isConnected($provider)) {
|
||||
return Url::to(['/user/settings/disconnect', 'id' => $this->accounts[$provider->getId()]->id]);
|
||||
} else {
|
||||
return parent::createClientUrl($provider);
|
||||
}
|
||||
|
||||
return parent::createClientUrl($provider);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user