From f9754edccea059d133c9496bfac96add5e6f212b Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 23 Aug 2016 23:10:05 +0200 Subject: [PATCH] client/general: fix autocomplete control Regression from d5e197e. --- client/js/controls/auto_complete_control.js | 2 +- client/js/controls/tag_input_control.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/js/controls/auto_complete_control.js b/client/js/controls/auto_complete_control.js index fd3fc47a..2bb1c9f8 100644 --- a/client/js/controls/auto_complete_control.js +++ b/client/js/controls/auto_complete_control.js @@ -215,7 +215,7 @@ class AutoCompleteControl { const listItem = document.createElement('li'); const link = document.createElement('a'); link.innerHTML = resultItem.caption; - link.setAtribute('href', ''); + link.setAttribute('href', ''); link.setAttribute('data-key', resultItem.value); link.addEventListener( 'mouseenter', diff --git a/client/js/controls/tag_input_control.js b/client/js/controls/tag_input_control.js index 4bc3d08c..e4f45bbf 100644 --- a/client/js/controls/tag_input_control.js +++ b/client/js/controls/tag_input_control.js @@ -325,7 +325,7 @@ class TagInputControl extends events.EventTarget { const removalLinkNode = document.createElement('a'); removalLinkNode.classList.add('append'); - removalLinkNode.setAttribute('href', '') + removalLinkNode.setAttribute('href', ''); removalLinkNode.setAttribute('data-pseudo-content', '×'); removalLinkNode.addEventListener('click', e => { e.preventDefault();