Uploadscript verfeinert
This commit is contained in:
38
js/components/admin_notenupload.js
Normal file
38
js/components/admin_notenupload.js
Normal 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
|
||||
});
|
Reference in New Issue
Block a user