@@ -130,14 +130,17 @@ discard block |
||
130 | 130 | </div> |
131 | 131 | </div> |
132 | 132 | <?php endif; ?> |
133 | - <?php else: ?> |
|
133 | + <?php else { |
|
134 | + : ?> |
|
134 | 135 | <h3 class="oauth2_authorize-client-modal-title oauth2_authorize-client-modal-title_no-scopes"> |
135 | 136 | <?= Yii::t('oauth2', '{clientName} would like to access {appName} on your behalf.', [ |
136 | 137 | 'clientName' => Html::encode($clientAuthorizationRequest->getClient()->getName()), |
137 | 138 | 'appName' => Yii::$app->name, |
138 | 139 | ]) ?> |
139 | 140 | </h3> |
140 | - <?php endif; ?> |
|
141 | + <?php endif; |
|
142 | +} |
|
143 | +?> |
|
141 | 144 | </div> |
142 | 145 | <div class="oauth2_authorize-client-modal-footer"> |
143 | 146 | <button |
@@ -163,11 +166,3 @@ discard block |
||
163 | 166 | |
164 | 167 | <?php |
165 | 168 | $js = <<<'JS' |
166 | - $('#oauth2_authorize-client-previously-approved-scopes-toggle').click(function(e) { |
|
167 | - $('#oauth2_authorize-client-previously-approved-scopes-list').slideToggle(); |
|
168 | - $(this).toggleClass('open'); |
|
169 | - e.preventDefault(); |
|
170 | - }); |
|
171 | - JS; |
|
172 | - |
|
173 | -$this->registerJs($js); |