[25534] Fix needless escaping with jquery-ui (#5649)

The `_.escape` was used for the typehead that was since replaced by ui-autocompleter,
which uses a text node to insert the label:

https://github.com/jquery/jquery-ui/blob/master/ui/widgets/autocomplete.js#L568

Thus the escape is no longer necessary.

https://community.openproject.com/projects/openproject/work_packages/25534/activity?query_id=930

[ci skip]
pull/5651/head
Oliver Günther 8 years ago committed by GitHub
parent 8e16ad70d6
commit 6bb684a531
  1. 2
      frontend/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.directive.ts

@ -83,7 +83,7 @@ function wpRelationsAutocompleteDirective(
function getIdentifier(workPackage:WorkPackageResourceInterface):string {
if (workPackage) {
return _.escape(`#${workPackage.id} - ${workPackage.subject}`);
return `#${workPackage.id} - ${workPackage.subject}`;
} else {
return '';
}

Loading…
Cancel
Save