From 20ddba2afd3137d1f66e69b35c7eda8e97b821e0 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 2 Oct 2020 11:41:39 +1000 Subject: [PATCH] Cleanup composer autocomplete --- assets/javascripts/wizard-custom.js | 1 + .../javascripts/wizard/components/wizard-composer-editor.js.es6 | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/wizard-custom.js b/assets/javascripts/wizard-custom.js index 19290d2c..c9a8c915 100644 --- a/assets/javascripts/wizard-custom.js +++ b/assets/javascripts/wizard-custom.js @@ -81,6 +81,7 @@ //= require discourse/app/helpers/user-avatar //= require discourse/app/helpers/format-username //= require discourse/app/helpers/share-url +//= require discourse/app/helpers/decorate-username-selector //= require discourse-common/addon/helpers/component-for-collection //= require discourse-common/addon/helpers/component-for-row //= require discourse-common/addon/lib/raw-templates diff --git a/assets/javascripts/wizard/components/wizard-composer-editor.js.es6 b/assets/javascripts/wizard/components/wizard-composer-editor.js.es6 index 12dbadfe..65df87da 100644 --- a/assets/javascripts/wizard/components/wizard-composer-editor.js.es6 +++ b/assets/javascripts/wizard/components/wizard-composer-editor.js.es6 @@ -33,7 +33,6 @@ export default ComposerEditor.extend({ const $preview = $(this.element.querySelector(".d-editor-preview-wrapper")); if (this.siteSettings.enable_mentions) { - console.log('initializing autocomplete', findRawTemplate("user-selector-autocomplete")) $input.autocomplete({ template: findRawTemplate("user-selector-autocomplete"), dataSource: (term) => this.userSearchTerm.call(this, term),