Switch to module init function pattern

This commit is contained in:
Cohee
2024-10-18 12:17:30 +00:00
parent a80741a20e
commit e2a09ad5a7
5 changed files with 17 additions and 14 deletions

View File

@ -80,7 +80,7 @@ function onServerConnectClick() {
});
}
jQuery(function () {
export function initServerHistory() {
$('[data-server-history]').each(createServerAutocomplete);
$(document).on('click', '[data-server-connect]', onServerConnectClick);
});
}