This repository was archived by the owner on Apr 7, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ For now, you should create a child-directive to customize (API probably going to
1717.directive (' myMention' , function ($http ){
1818 return {
1919 require: ' uiMention' ,
20- link ($scope , $element , $attrs , uiMention ) {
20+ link : function ($scope , $element , $attrs , uiMention ) {
2121 /**
2222 * Converts a choice object to a human-readable string
2323 *
2424 * @param {mixed|object} choice The choice to be rendered
2525 * @return {string} Human-readable string version of choice
2626 */
2727 uiMention .label = function (choice ) {
28- return ` ${ choice .first_name } ${ choice .last_name } ` ;
28+ return choice .first_name + " " + choice .last_name ;
2929 };
3030
3131 /**
@@ -47,7 +47,7 @@ You have to build the HTML yourself:
4747 <textarea ng-model =" data" ui-mention my-mention ></textarea >
4848 <div class =" ui-mention-highlight" ></div >
4949</div >
50- <ul class =dropdown " ng-if=" $mention.choices.length " >
50+ <ul class =" dropdown" ng-if =" $mention.choices.length" >
5151 <li ng-repeat =" choice in $mention.choices"
5252 ng-class =" {active:$mention.activeChoice==choice}"
5353 ng-click =" $mention.select(choice)" >
You can’t perform that action at this time.
0 commit comments