mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-24 16:18:00 +01:00
URL autocomplete now works on newly created attachments too.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user