From a7b1815d2bea792fd92807bb6fc15cfacb1543a7 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Tue, 17 Nov 2020 14:38:48 +0100 Subject: [PATCH] Fixed #148 --- shared/js/ui/modal/ModalBookmarks.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shared/js/ui/modal/ModalBookmarks.ts b/shared/js/ui/modal/ModalBookmarks.ts index 300c4f9a..d269befc 100644 --- a/shared/js/ui/modal/ModalBookmarks.ts +++ b/shared/js/ui/modal/ModalBookmarks.ts @@ -105,7 +105,7 @@ export function spawnBookmarkModal() { if (selected_bookmark && selected_bookmark.type === BookmarkType.ENTRY) { const entry = selected_bookmark as Bookmark; - const address = entry.server_properties.server_address + (entry.server_properties.server_port == 9987 ? "" : (" " + entry.server_properties.server_port)); + const address = entry.server_properties.server_address + (entry.server_properties.server_port == 9987 ? "" : (":" + entry.server_properties.server_port)); label_server_address.text(address); input_server_address.val(address); @@ -312,7 +312,7 @@ export function spawnBookmarkModal() { } }); - input_server_address.on('change keydown', () => { + input_server_address.on('change keyup', () => { const address = input_server_address.val() as string; const valid = !!address.match(Regex.IP_V4) || !!address.match(Regex.IP_V6) || !!address.match(Regex.DOMAIN); input_server_address.firstParent(".input-boxed").toggleClass("is-invalid", !valid); @@ -330,7 +330,7 @@ export function spawnBookmarkModal() { } save_bookmark(selected_bookmark); - label_server_address.text(entry.server_properties.server_address + (entry.server_properties.server_port == 9987 ? "" : (" " + entry.server_properties.server_port))); + label_server_address.text(entry.server_properties.server_address + (entry.server_properties.server_port == 9987 ? "" : (":" + entry.server_properties.server_port))); update_connect_info(); } });