Cleanup composer autocomplete
Dieser Commit ist enthalten in:
Ursprung
05f96beac1
Commit
20ddba2afd
2 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -81,6 +81,7 @@
|
||||||
//= require discourse/app/helpers/user-avatar
|
//= require discourse/app/helpers/user-avatar
|
||||||
//= require discourse/app/helpers/format-username
|
//= require discourse/app/helpers/format-username
|
||||||
//= require discourse/app/helpers/share-url
|
//= 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-collection
|
||||||
//= require discourse-common/addon/helpers/component-for-row
|
//= require discourse-common/addon/helpers/component-for-row
|
||||||
//= require discourse-common/addon/lib/raw-templates
|
//= require discourse-common/addon/lib/raw-templates
|
||||||
|
|
|
@ -33,7 +33,6 @@ export default ComposerEditor.extend({
|
||||||
const $preview = $(this.element.querySelector(".d-editor-preview-wrapper"));
|
const $preview = $(this.element.querySelector(".d-editor-preview-wrapper"));
|
||||||
|
|
||||||
if (this.siteSettings.enable_mentions) {
|
if (this.siteSettings.enable_mentions) {
|
||||||
console.log('initializing autocomplete', findRawTemplate("user-selector-autocomplete"))
|
|
||||||
$input.autocomplete({
|
$input.autocomplete({
|
||||||
template: findRawTemplate("user-selector-autocomplete"),
|
template: findRawTemplate("user-selector-autocomplete"),
|
||||||
dataSource: (term) => this.userSearchTerm.call(this, term),
|
dataSource: (term) => this.userSearchTerm.call(this, term),
|
||||||
|
|
Laden …
In neuem Issue referenzieren