Merge pull request #2481 from githubjeka/global-modal

Fix todo in Global modal
This commit is contained in:
Lucas Bartholemy 2017-04-13 12:40:24 +02:00 committed by GitHub
commit b6d7807a8d
3 changed files with 9 additions and 16 deletions

View File

@ -11,6 +11,7 @@ HumHub Change Log
- Fix #2219: Overlapping summary mail content
- Fix: Wall entry layout link/text overflow
- Fix: Stream - Do not surpress if only particual contents are displayed
- Fix: GlobalModal extends base Modal widget and GlobalModal::$backdrop is false by default (githubjeka)
1.2.0-beta.4 (March 28, 2017)
--------------------------------

View File

@ -16,15 +16,17 @@ namespace humhub\widgets;
* @author Luke
* @since 1.1
*/
class GlobalModal extends \yii\base\Widget
class GlobalModal extends Modal
{
/**
* @var string this id need to js scripts
*/
public $id = 'globalModal';
/**
* @inheritdoc
* It's false because it's often used for serious work, for example html forms,
* accidental closing of which can lead to loss of user data.
*/
public function run()
{
return $this->render('globalModal');
}
public $backdrop = false;
}

View File

@ -1,10 +0,0 @@
<?php //Todo: use base Modal widget ?>
<div class="modal" id="globalModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<?= \humhub\widgets\LoaderWidget::widget(); ?>
</div>
</div>
</div>
</div>