Rollen/Rechte
This commit is contained in:
@ -90,7 +90,7 @@ function delzuordnung(val) {
|
||||
});
|
||||
});
|
||||
}
|
||||
$('#msg').show().delay(20000).fadeOut(500);
|
||||
$('#msg').show().delay(10000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
@ -165,7 +165,7 @@ function deluser(val) {
|
||||
});
|
||||
});
|
||||
}
|
||||
$('#msg').show().delay(20000).fadeOut(500);
|
||||
$('#msg').show().delay(10000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
@ -176,26 +176,28 @@ function deluser(val) {
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
||||
function onClickDelete(id) {
|
||||
|
||||
document.getElementById("antwort").value = "";
|
||||
r = confirm('Antwort löschen?');
|
||||
function delRole(rid) {
|
||||
r = confirm('Rolle löschen? Benutzer sind dann unzugeordnet!');
|
||||
if (r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
url: '../controller/admin_rollen.php',
|
||||
data: {
|
||||
'function': 'delete',
|
||||
'tabelle': 'jumi_umfragen_antworten',
|
||||
'spalte': 'uaid',
|
||||
'id': id
|
||||
'function': 'delRole',
|
||||
'rid': rid
|
||||
},
|
||||
success: function(result) { //we got the response
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?action=fragen&erfassen=1";
|
||||
});
|
||||
if(result!=''){
|
||||
var a = result.split('|***|');
|
||||
if(a[1]=="success"){
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?";
|
||||
});
|
||||
}
|
||||
$('#msg').show().delay(10000).fadeOut(500);
|
||||
$('#msg').html(a[0]);
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, exception) {
|
||||
console.log(xhr);
|
||||
@ -203,27 +205,3 @@ function onClickDelete(id) {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function onClickDeleteQuestion(id2) {
|
||||
document.getElementById("frage").value = "";
|
||||
document.getElementById("antwort").value = "";
|
||||
r = confirm('Gesamte Frage löschen?');
|
||||
if (r) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '../controller/admin_erfassen.php',
|
||||
data: {
|
||||
'function': 'deleteQuestion',
|
||||
'id2': id2
|
||||
},
|
||||
success: function(result) {
|
||||
// document.getElementById("del").innerHTML = "<strong>entfernt</strong>";
|
||||
//Text einblenden geht nicht, da ein Refresh gemacht wird. Dann sieht man den Text nicht
|
||||
$(document).ajaxStop(function(){
|
||||
window.location = "?action=fragen&erfassen=1";
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user