js2ts: processing plugin 정리

This commit is contained in:
2021-08-21 00:29:50 +09:00
parent 096b87d4e3
commit 5c56b5aacf
5 changed files with 25 additions and 210 deletions
+7 -2
View File
@@ -3,7 +3,8 @@ import { unwrap_any } from "./util/unwrap_any";
/*import $ from 'jquery';
import 'select2';*///TODO: processing
$(function() {
export function loadPlugin(): void {
const $target = $("#destCityID");
console.log('target', $target);
void reloadWorldMap({
@@ -11,7 +12,7 @@ $(function() {
clickableAll: true,
neutralView: true,
useCachedMap: true,
selectCallback: function(city) {
selectCallback: function (city) {
const currVal = unwrap_any<string>($target.val());
$target.val(city.id).trigger("change");
if ($target.val() === null) {
@@ -20,4 +21,8 @@ $(function() {
return false;
}
});
}
$(function () {
loadPlugin();
});