URL autocomplete now works on newly created attachments too.

This commit is contained in:
Jan Böhmer 2019-10-03 14:17:35 +02:00
parent 4beb3631ab
commit 0fc987f017
3 changed files with 5 additions and 1 deletions

View file

@ -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({

View file

@ -98,5 +98,7 @@
$(".selectpicker").selectpicker();
$(".file").fileinput();
//Reinit typeahead:
$(document).trigger('attachment:create');
}
</script>

View file

@ -90,5 +90,7 @@
$(".selectpicker").selectpicker();
$(".file").fileinput();
//Reinit typeahead:
$(document).trigger('attachment:create');
}
</script>