forked from Github-Mirrors/canaille
Reload UX JS on htmx events
This commit is contained in:
parent
2fb0085d7b
commit
c5e33e30ca
1 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,14 @@
|
|||
$(function(){
|
||||
function onDomChanges() {
|
||||
$('.ui.dropdown').each(function(){
|
||||
$(this).dropdown({"placeholder": $(this).attr("placeholder")});
|
||||
});
|
||||
$('.autofocus').focus();
|
||||
$('*[title]').popup();
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
$('.autofocus').focus();
|
||||
onDomChanges();
|
||||
});
|
||||
|
||||
|
||||
document.addEventListener('htmx:load', onDomChanges);
|
||||
|
|
Loading…
Reference in a new issue