diff --git a/app/controllers/oer/addfile.php b/app/controllers/oer/addfile.php index 7cb46c760a468f6a94bbeb3e3643859751688cb9..cc0364a5102c9ffe0f27909374c060d719d344b2 100644 --- a/app/controllers/oer/addfile.php +++ b/app/controllers/oer/addfile.php @@ -126,6 +126,9 @@ class Oer_AddfileController extends AuthenticatedController //The folder is not a top folder. We can use its name directly. $this->to_folder_name = $this->to_folder_type->name; } + if (Request::isAjax()) { + $this->response->add_header('X-Dialog-Execute', 'STUDIP.OER.initSearch'); + } } /** diff --git a/app/views/file/add_files_window.php b/app/views/file/add_files_window.php index 94ad52052c441fe39ddaa5096ed8113478b5d0ea..64b2ff9010685843e6f6d745739714f2d622db0e 100644 --- a/app/views/file/add_files_window.php +++ b/app/views/file/add_files_window.php @@ -58,7 +58,7 @@ if ($folder_id) { <? endif ?> <? if (Config::get()->OERCAMPUS_ENABLED && $GLOBALS['perm']->have_perm(Config::get()->OERCAMPUS_PUBLIC_STATUS)) : ?> <a href="<?= $controller->link_for('oer/addfile/choose_file', array_merge($options, ['from_plugin' => ""])) ?>" - data-dialog="height=800"> + data-dialog="size=800x800"> <?= Icon::create('oer-campus')->asImg(50) ?> <?= htmlReady(Config::get()->OER_TITLE) ?> </a>