mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 12:24:33 +02:00
URL autocomplete now works on newly created attachments too.
This commit is contained in:
parent
4beb3631ab
commit
0fc987f017
3 changed files with 5 additions and 1 deletions
|
@ -348,7 +348,7 @@ $(document).on("ajaxUI:start", function() {
|
|||
});
|
||||
|
||||
//Register typeaheads
|
||||
$(document).on("ajaxUI:reload ajaxUI:start", function () {
|
||||
$(document).on("ajaxUI:reload ajaxUI:start attachment:create", function () {
|
||||
$('input[data-autocomplete]').each(function() {
|
||||
//@ts-ignore
|
||||
var engine = new Bloodhound({
|
||||
|
|
|
@ -98,5 +98,7 @@
|
|||
$(".selectpicker").selectpicker();
|
||||
$(".file").fileinput();
|
||||
|
||||
//Reinit typeahead:
|
||||
$(document).trigger('attachment:create');
|
||||
}
|
||||
</script>
|
|
@ -90,5 +90,7 @@
|
|||
$(".selectpicker").selectpicker();
|
||||
$(".file").fileinput();
|
||||
|
||||
//Reinit typeahead:
|
||||
$(document).trigger('attachment:create');
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue