mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fixed: Improved space invite lightbox error handling
This commit is contained in:
parent
c77d3964dd
commit
6223375df3
@ -7,8 +7,9 @@ Add following block to your local web configuration (/protected/config/web.php)
|
||||
```php
|
||||
<?php
|
||||
return [
|
||||
...
|
||||
'modules' => [
|
||||
// ...
|
||||
'bootstrap' => ['debug'],
|
||||
'modules' => [
|
||||
// ...
|
||||
|
||||
'debug' => [
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
Here you will learn how you can adapt existing themes to working fine with actually versions.
|
||||
|
||||
## Migrate from 1.0.0-beta.4
|
||||
## Migrate to 1.0.0-beta.4
|
||||
|
||||
The following line was added to the HumHub Base Theme Less/Css file due to a Bootstrap update:
|
||||
https://github.com/humhub/humhub/blob/0a388d225a53fd873773cf0989d6e10aaf66996a/themes/HumHub/css/theme.less#L648
|
||||
|
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Url;
|
||||
use yii\widgets\ActiveForm;
|
||||
use humhub\models\Setting;
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal-dialog modal-dialog-small animated fadeIn">
|
||||
@ -96,19 +96,17 @@ use humhub\models\Setting;
|
||||
<script type="text/javascript">
|
||||
|
||||
// Shake modal after wrong validation
|
||||
<?php if ($model->hasErrors()) : ?>
|
||||
$('.modal-dialog').removeClass('fadeIn');
|
||||
$('.modal-dialog').addClass('shake');
|
||||
<?php if ($model->hasErrors()) : ?>
|
||||
$('.modal-dialog').removeClass('fadeIn');
|
||||
$('.modal-dialog').addClass('shake');
|
||||
|
||||
// check if there is an error at the second tab
|
||||
<?php if ($form->error($model, 'inviteExternal') != null) : ?>
|
||||
|
||||
// show tab
|
||||
$('#tabs a:last').tab('show');
|
||||
|
||||
<?php endif; ?>
|
||||
// check if there is an error at the second tab
|
||||
|
||||
<?php if (Setting::Get('internalUsersCanInvite', 'authentication_internal') && $model->hasError('inviteExternal')) : ?>
|
||||
// show tab
|
||||
$('#tabs a:last').tab('show');
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
$('.tab-internal a').on('shown.bs.tab', function (e) {
|
||||
$('#invite_tag_input_field').focus();
|
||||
|
Loading…
x
Reference in New Issue
Block a user