e4aa5a5c8f
* static initialization and setup moved to assets * per request initialization moved to layout partial
17 lines
593 B
Text
17 lines
593 B
Text
:javascript
|
|
$(function() {
|
|
autocompleteMembersUrl = "#{ "/api/v2/projects/#{@project.code}/members" if @project }";
|
|
autocompleteMembersParams.private_token = "#{current_user.authentication_token}";
|
|
|
|
autocompleteEmojiData = #{raw emoji_autocomplete_source};
|
|
// convert the list so that the items have the right format for completion
|
|
autocompleteEmojiData = $.map(autocompleteEmojiData, function(value) {
|
|
return {
|
|
name: value,
|
|
insert: value+':',
|
|
image: '#{image_path("emoji")}/'+value+'.png'
|
|
}
|
|
});
|
|
|
|
setupGfmAutoComplete();
|
|
});
|