Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • bootstrap4
  • intros
  • master
  • modules
  • postgres_integration
  • s3compatible
6 results

Target

Select target project
  • jannik/website
  • vincent/website
  • dominic/website
  • romank/website
  • videoaginfra/website
5 results
Select Git revision
  • bootstrap4
  • intros
  • live_sources
  • master
  • modules
5 results
Show changes
Showing
with 33587 additions and 620 deletions
File added
File added
This diff is collapsed.
File added
File added
File added
File added
This diff is collapsed.
File added
File added
File added
This diff is collapsed.
......@@ -139,11 +139,11 @@ var moderator = {
changeboxclick: function(src) {
var value = $(src)[0].checked;
var path = $(src).data('path');
moderator.api.set(path,value ? 1 : 0);
moderator.api.set(path,value ? true : false);
},
deletebtnclick: function(src) {
if (confirm('Really delete this?')) {
moderator.api.set($(src).data('path'),1,true);
moderator.api.set($(src).data('path'),true,true);
}
}
},
......@@ -168,7 +168,7 @@ var moderator = {
var type = $(srcel).data('type');
$('#editpermdiv').data('id',id);
$('#editpermdiv').data('type',type);
var html = ''
var permElems = []
for (i in moderator.permissioneditor.permissions) {
if ((moderator.permissioneditor.permissions[i][type+'_id'] == id)) {
var perm = {};
......@@ -197,11 +197,21 @@ var moderator = {
case 'l2p':
permstring = '(' + perm.param1 + ')'
break;
case 'moodle':
permstring = '(' + perm.param1 + ')'
break;
}
html += '<option data-id="'+perm.id+'" data-type="'+perm.type+'" data-param1="'+perm.param1+'" data-param2="'+perm.param2+'">#'+perm.id+' '+perm.type+' '+ permstring +'</option>';
var optionEl = document.createElement('option');
optionEl.dataset.id = perm.id;
optionEl.dataset.type = perm.type;
optionEl.dataset.param1 = perm.param1;
optionEl.dataset.param2 = perm.param2;
optionEl.text = '#' + perm.id + ' ' + perm.type + ' ' + permstring;
permElems.push(optionEl)
}
}
$('#permissionlist').html(html);
document.querySelector('#permissionlist').replaceChildren(...permElems);
});
},
......@@ -220,11 +230,14 @@ var moderator = {
case 'l2p':
$(".authl2p", container).val(perm.param1);
break
case 'moodle':
$(".authmoodle", container).val(perm.param1);
break
}
$(".authtype option[value="+perm.type+"]").prop("selected", true);
},
delbtnclick: function (element) {
moderator.api.set("perm."+$("#permissionlist option:selected", element.parentElement).data('id')+".deleted",1,true);
moderator.api.set("perm."+$("#permissionlist option:selected", element.parentElement).data('id')+".deleted",true,true);
},
addbtnclick: function (element) {
var container = element.parentElement;
......@@ -266,6 +279,9 @@ var moderator = {
case 'l2p':
perm.param1 = $(".authl2p", container).val();
break
case 'moodle':
perm.param1 = $(".authmoodle", container).val();
break
}
return perm;
},
......@@ -277,18 +293,27 @@ var moderator = {
$(".authuser", container).val('');
$(".authpassword", container).val('');
$(".authl2p", container).val('');
$(".authmoodle", container).val('');
switch (type) {
case 'password':
$(".passwordinput",container).show();
$(".authl2p",container).hide();
$(".authmoodle",container).hide();
break;
case 'l2p':
$(".passwordinput",container).hide();
$(".authl2p",container).show();
$(".authmoodle",container).hide();
break;
case 'moodle':
$(".passwordinput",container).hide();
$(".authl2p",container).hide();
$(".authmoodle",container).show();
break;
default:
$(".passwordinput",container).hide();
$(".authl2p",container).hide();
$(".authmoodle",container).hide();
break;
}
},
......
static/moodle.png

770 B

static/smptebars.jpg

6.36 KiB

......@@ -137,10 +137,23 @@ th.rotate {
th.rotate > div {
transform:
rotate(270deg)
translate(-50px,0px);
translate(-100px,0px);
width: 30px;
}
th.rotate > div > span {
padding: 5px 10px;
}
.tooltip-inner {
max-width: 500px;
}
#cutprogress td {
white-space: nowrap;
}
#cutprogress.table tr.weekbreak td {
border-top: 2px solid black !important;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.