Skip to content
Snippets Groups Projects
Commit aabe4901 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "OER Campus: Datei von Dateibereich aus einbinden"

parent 4713e153
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,9 @@ class Oer_AddfileController extends AuthenticatedController ...@@ -126,6 +126,9 @@ class Oer_AddfileController extends AuthenticatedController
//The folder is not a top folder. We can use its name directly. //The folder is not a top folder. We can use its name directly.
$this->to_folder_name = $this->to_folder_type->name; $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) { ...@@ -58,7 +58,7 @@ if ($folder_id) {
<? endif ?> <? endif ?>
<? if (Config::get()->OERCAMPUS_ENABLED && $GLOBALS['perm']->have_perm(Config::get()->OERCAMPUS_PUBLIC_STATUS)) : ?> <? 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' => ""])) ?>" <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) ?> <?= Icon::create('oer-campus')->asImg(50) ?>
<?= htmlReady(Config::get()->OER_TITLE) ?> <?= htmlReady(Config::get()->OER_TITLE) ?>
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment