anpassung feedback
This commit is contained in:
parent
33ec55e6f1
commit
0798e94040
28
feedback.js
28
feedback.js
@ -22,6 +22,34 @@ function ajaxFeedback(e,url,css) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function ajaxCommentFeedback(e,url,css) {
|
||||
let comment = prompt("Was funktioniert nicht?");
|
||||
if(comment) {
|
||||
url = url + "&comment="+encodeURIComponent(comment);
|
||||
}
|
||||
$.ajax({
|
||||
url: url,
|
||||
success: function(res) {
|
||||
if(res =='success') {
|
||||
successMarker(e,css);
|
||||
return;
|
||||
}else{
|
||||
if(res =='warn') {
|
||||
warnMarker(e,css);
|
||||
return;
|
||||
}else{
|
||||
errorMarker(e,css);
|
||||
return;
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (res,err) {
|
||||
errorMarker(e,css);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
function formFeedback(e,f,url,css) {
|
||||
var formData = {}
|
||||
$(f).each(function(i, obj) {
|
||||
|
||||
2
feedback.min.js
vendored
2
feedback.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user