Uploadscript verfeinert

This commit is contained in:
aschwarz
2023-04-03 14:41:10 +02:00
parent cb2db9187f
commit ee2d746772
410 changed files with 47896 additions and 422 deletions

View File

@ -0,0 +1,38 @@
// Anders als sonst. Hier ist das Javascript auf der ID des Textfelds
// https://stackoverflow.com/questions/8300381/jquery-ui-autocomplete-how-to-send-post-data
$("#titel").autocomplete({
source: function(request, response) {
$.ajax({
type: "POST",
url: "../controller/admin_suche.php",
data: {
term: request.term,
function: "titel"
},
success: response,
dataType: 'json',
delay: 10
});
}
}, {
minLength: 2
});
$("#verlag").autocomplete({
source: function(request, response) {
$.ajax({
type: "POST",
url: "../controller/admin_suche.php",
data: {
term: request.term,
function: "verlag"
},
success: response,
dataType: 'json',
delay: 10
});
}
}, {
minLength: 2
});