Skip to content
Snippets Groups Projects
Commit 39cc822d authored by André Noack's avatar André Noack Committed by David Siegfried
Browse files

Resolve #2012 "Ilias Schnittstelle: Anlengen von Lernobjekten von Stud.IP nicht möglich"

Closes #2012

Merge request studip/studip!1315
parent 19dff131
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@
<form class="default" action="<?= $controller->url_for('admin/ilias_interface/save/'.$ilias_index) ?>" method="post">
<? endif ?>
<?= CSRFProtection::tokenTag() ?>
<? if (count($existing_indices) && ($ilias_index == 'new')) : ?>
<? if (isset($existing_indices) && count($existing_indices) && ($ilias_index == 'new')) : ?>
<label>
<span class="required"><?= _('Art der Verknüpfung') ?></span>
<select name="ilias_index">
......
......@@ -20,8 +20,10 @@
</form>
<script>
jQuery(function ($) {
$('button[name=submit]').click(function () {
window.location.reload();
$('form.default').submit(function () {
window.setTimeout(function () {
$('button[name=cancel]').click();
}, 500);
});
});
</script>
......@@ -5,7 +5,7 @@
<caption>
<?= sprintf(_('Meine Lernobjekte in %s'), $ilias->getName()) ?>
<span class="actions">
<a href="<?= $controller->url_for('my_ilias_accounts/add_object/'.$ilias_index) ?>" data-dialog="size=auto;reload-on-close">
<a href="<?= $controller->url_for('my_ilias_accounts/add_object/'.$ilias_index) ?>" data-dialog="size=auto">
<?= Icon::create('add', Icon::ROLE_CLICKABLE, tooltip2(_('Neues Lernobjekt anlegen'))) ?>
</a>
</span>
......
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