blob: 2fff6cfd22e600402132759cd1517c6ec57cccae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/* ------------------------------------------------------------------------
* Anmeldeverfahren und -sets
* ------------------------------------------------------------------------ */
STUDIP.ready(function () {
/**
* Check for admission rules with Vue components
* @type {NodeListOf<Element>}
*/
const containers = document.querySelectorAll('[data-admission-rule]');
containers.forEach(container => {
const ruleType = container.dataset.admissionRule;
if (STUDIP.Admission.availableRules[ruleType] !== undefined) {
import('@/vue/components/admission/' + STUDIP.Admission.availableRules[ruleType])
.then(result => {
const components = {};
components[ruleType] = result.default;
STUDIP.Vue.load().then(({ createApp }) => {
createApp({components}).mount(container);
});
});
}
});
$('a.userlist-delete-user').on('click', function() {
$(this).closest('tr').remove();
return false;
});
});
|