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 @@ ...@@ -17,7 +17,7 @@
<form class="default" action="<?= $controller->url_for('admin/ilias_interface/save/'.$ilias_index) ?>" method="post"> <form class="default" action="<?= $controller->url_for('admin/ilias_interface/save/'.$ilias_index) ?>" method="post">
<? endif ?> <? endif ?>
<?= CSRFProtection::tokenTag() ?> <?= CSRFProtection::tokenTag() ?>
<? if (count($existing_indices) && ($ilias_index == 'new')) : ?> <? if (isset($existing_indices) && count($existing_indices) && ($ilias_index == 'new')) : ?>
<label> <label>
<span class="required"><?= _('Art der Verknüpfung') ?></span> <span class="required"><?= _('Art der Verknüpfung') ?></span>
<select name="ilias_index"> <select name="ilias_index">
......
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
</form> </form>
<script> <script>
jQuery(function ($) { jQuery(function ($) {
$('button[name=submit]').click(function () { $('form.default').submit(function () {
window.location.reload(); window.setTimeout(function () {
$('button[name=cancel]').click();
}, 500);
}); });
}); });
</script> </script>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<caption> <caption>
<?= sprintf(_('Meine Lernobjekte in %s'), $ilias->getName()) ?> <?= sprintf(_('Meine Lernobjekte in %s'), $ilias->getName()) ?>
<span class="actions"> <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'))) ?> <?= Icon::create('add', Icon::ROLE_CLICKABLE, tooltip2(_('Neues Lernobjekt anlegen'))) ?>
</a> </a>
</span> </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