Show More
@@ -226,9 +226,9 b'' | |||
|
226 | 226 | }; |
|
227 | 227 | }; |
|
228 | 228 | |
|
229 |
var formatRefSelection = function( |
|
|
229 | var formatRefSelection = function(data, container, escapeMarkup) { | |
|
230 | 230 | var prefix = ''; |
|
231 |
var refData = |
|
|
231 | var refData = data.id.split(':'); | |
|
232 | 232 | if (refData[0] === 'branch') { |
|
233 | 233 | prefix = '<i class="icon-branch"></i>'; |
|
234 | 234 | } |
@@ -239,9 +239,9 b'' | |||
|
239 | 239 | prefix = '<i class="icon-tag"></i>'; |
|
240 | 240 | } |
|
241 | 241 | |
|
242 |
var originalOption = |
|
|
243 |
return prefix + |
|
|
244 | }; | |
|
242 | var originalOption = data.element; | |
|
243 | return prefix + escapeMarkup(data.text); | |
|
244 | };formatSelection: | |
|
245 | 245 | |
|
246 | 246 | // custom code mirror |
|
247 | 247 | var codeMirrorInstance = $('#pullrequest_desc').get(0).MarkupForm.cm; |
General Comments 0
You need to be logged in to leave comments.
Login now