Blame view

backend/modules/sys/views/filemanager/filemanager.php 596 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php
  /**
   *
   * @author FilamentV <vortex.filament@gmail.com>
   * @copyright (c), Thread
   */
  ?>
  <iframe onload="autoResize(this);" class="iframebox"
          src="<?= \yii\helpers\Url::base() ?>js/filemanager/dialog.php?hl=<?= Yii::$app->params['themes']['language']??'en-EN' ?>"
          style="width: 100%; border: 0; height: 10px; min-height: 85vh;">
  </iframe>
  <script type="text/javascript">
      function autoResize(iframe) {
          console.log($(iframe).contents().find('body.no-touch').height());
          $(iframe).height($(iframe).contents().find('body.no-touch').height());
      }
  </script>