aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-05-11 10:44:02 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-05-11 10:44:02 +0000
commit40876d756145ae8a1316efe67bc85d9cf1528b73 (patch)
tree224a42127f57c9c501cbd66a841e51607b39da79 /resources/assets/javascripts/lib
parenta3ef933cdd5c04a4cb3dbae4a410e2a81831c84c (diff)
remove unused table admissionrule_inst as well as jstree dependency and adjust ui accordingly, fixes #973
Closes #973 Merge request studip/studip!561
Diffstat (limited to 'resources/assets/javascripts/lib')
-rw-r--r--resources/assets/javascripts/lib/admission.js37
1 files changed, 0 insertions, 37 deletions
diff --git a/resources/assets/javascripts/lib/admission.js b/resources/assets/javascripts/lib/admission.js
index 33e96aa..dd46422 100644
--- a/resources/assets/javascripts/lib/admission.js
+++ b/resources/assets/javascripts/lib/admission.js
@@ -168,43 +168,6 @@ const Admission = {
return false;
},
- /**
- * Creates a tree view from the HTML list in <elementId> using the
- * given data for special node types.
- *
- * @param String elementId
- * @param typesData JS object with tree nodes types
- * (@see http://www.jstree.com/documentation/types)
- */
- makeTree: function(elementId, typesData) {
- var config = {
- core: {
- animation: 100,
- open_parents: true,
- initially_open: ['root']
- },
- checkbox: {
- real_checkboxes: true,
- selected_parent_open: true,
- override_ui: false,
- two_state: true
- },
- plugins: ['html_data', 'themes', 'types', 'checkbox', 'ui']
- };
- config.types = { types: typesData };
- $('#' + elementId)
- .on('loaded.jstree', function(event, data) {
- // Show checked checkboxes.
- var checkedItems = $('#' + elementId).find('.jstree-checked');
- checkedItems.removeClass('jstree-unchecked');
- // Open parent nodes of checked nodes.
- checkedItems.parents().each(function() {
- data.inst.open_node(this, false, true);
- });
- })
- .jstree(config);
- },
-
updateInstitutes: function(elementId, instURL, courseURL, mode) {
if (elementId !== '') {
var query = '';