public function actionLibraryTab()
 {
     $searchModel = new $this->module->models['filesSearch']();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     if (Yii::$app->request->getQueryParam('page')) {
         echo Gallery::widget(['dataProvider' => $dataProvider, 'viewFrom' => 'modal']);
         \Yii::$app->end();
     }
     echo $this->renderAjax('_grid-view', ['model' => $searchModel, 'dataProvider' => $dataProvider, 'uploadType' => Filemanager::TYPE_MODAL, 'viewFrom' => 'modal']);
     \Yii::$app->end();
 }
Ejemplo n.º 2
0
        </div>
    </div>
    <?php 
}
?>
<div class="row">
    <div class="<?php 
echo $colClass;
?>
">
        <div class="fm-gallery clearfix" <?php 
echo $uploadType == Filemanager::TYPE_MODAL ? 'style="max-height: 550px; overflow-y: auto;"' : '';
?>
>
            <?php 
echo Gallery::widget(['dataProvider' => $dataProvider, 'viewFrom' => $viewFrom]);
?>
            <div class="fm-gallery-loading fm-loading hide">
                <i class="fa fa-spinner fa-pulse"></i>
            </div>
        </div>
    </div>
    <?php 
if ($uploadType == Filemanager::TYPE_MODAL) {
    ?>
        <div class="fm-file-info-loading col-sm-6 col-xs-12 hidden-xs">
            <div class="fm-loading hide">
                <i class="fa fa-spinner fa-pulse"></i>
            </div>
        </div>
        <div class="col-sm-6 col-xs-12 hidden-xs">