Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use correct mention `type` instead of hard-coding `'contact'`.

  • Loading branch information...
commit 55f6cef8e1f0ed99ea981d772610b6eb971dafc1 1 parent 9b02a45
Jordan Cole authored January 19, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  jquery.mentionsInput.js
4  jquery.mentionsInput.js
@@ -104,14 +104,14 @@
104 104
       var syntaxMessage = getInputBoxValue();
105 105
 
106 106
       _.each(mentionsCollection, function (mention) {
107  
-        var textSyntax = settings.templates.mentionItemSyntax({ value : mention.value, type : 'contact', id : mention.id });
  107
+        var textSyntax = settings.templates.mentionItemSyntax({ value : mention.value, type : mention.type, id : mention.id });
108 108
         syntaxMessage = syntaxMessage.replace(mention.value, textSyntax);
109 109
       });
110 110
 
111 111
       var mentionText = utils.htmlEncode(syntaxMessage);
112 112
 
113 113
       _.each(mentionsCollection, function (mention) {
114  
-        var textSyntax = settings.templates.mentionItemSyntax({ value : utils.htmlEncode(mention.value), type : 'contact', id : mention.id });
  114
+        var textSyntax = settings.templates.mentionItemSyntax({ value : utils.htmlEncode(mention.value), type : mention.type, id : mention.id });
115 115
         var textHighlight = settings.templates.mentionItemHighlight({ value : utils.htmlEncode(mention.value) });
116 116
 
117 117
         mentionText = mentionText.replace(textSyntax, textHighlight);

0 notes on commit 55f6cef

Please sign in to comment.
Something went wrong with that request. Please try again.