1
0
Fork 0

Cleanup composer autocomplete

Dieser Commit ist enthalten in:
Angus McLeod 2020-10-02 11:41:39 +10:00
Ursprung 05f96beac1
Commit 20ddba2afd
2 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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

Datei anzeigen

@ -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),