aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/autocomplete.js
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-21 14:36:46 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-21 14:36:46 +0100
commitaf28b332148087c83501bf37a376c73b5fd357cb (patch)
treef21aad59e3d5821d794f74e7469982356c468c7c /view/js/autocomplete.js
parentc2b84f73852a728ccadd7a9b58ec693b81ba65db (diff)
downloadvolse-hubzilla-af28b332148087c83501bf37a376c73b5fd357cb.tar.gz
volse-hubzilla-af28b332148087c83501bf37a376c73b5fd357cb.tar.bz2
volse-hubzilla-af28b332148087c83501bf37a376c73b5fd357cb.zip
Fix whitespace disappearing at the beginning of completed smily
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r--view/js/autocomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index 7e6fc44ab..e62959a6c 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -52,7 +52,7 @@ function replace(item) {
index: 2,
search: function(term, callback) { $.getJSON('/smilies/json').done(function(data) { callback($.map(data, function(entry) { return entry['text'].indexOf(term) === 0 ? entry : null })) }) },
template: function(item) { return item['icon'] + item['text'] },
- replace: function(item) { return item['text'] + ' '; },
+ replace: function(item) { return "$1"+item['text'] + ' '; },
}
this.textcomplete([contacts,smilies],{});
};