Skip to content
Snippets Groups Projects
Commit 56f1a4be authored by Rasmus Fuhse's avatar Rasmus Fuhse Committed by Jan-Hendrik Willms
Browse files

Resolve "OER Campus: Datei von Dateibereich aus einbinden"

parent 13c3666d
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
}
/**
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment