Skip to content

Commit

Permalink
Highlight source values within UnitSource component
Browse files Browse the repository at this point in the history
  • Loading branch information
ta2-1 authored and julen committed Sep 29, 2016
1 parent 3eb73c0 commit 34c61c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion pootle/static/js/editor/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,6 @@ PTL.editor = {
this.displayObsoleteMsg();
}

utils.highlightRWNodes('.js-translation-text');
highlightSuggestionsDiff(currentUnit);

// set direction of the comment body
Expand Down
3 changes: 3 additions & 0 deletions pootle/static/js/editor/components/UnitSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import React from 'react';

import { t } from 'utils/i18n';

import { highlightRW } from '../../utils';


const UnitSource = React.createClass({

Expand Down Expand Up @@ -38,6 +40,7 @@ const UnitSource = React.createClass({
<div
className="translation-text js-translation-text"
data-string={sourceValue}
dangerouslySetInnerHTML={{ __html: highlightRW(sourceValue) }}
{...props}
></div>
</div>
Expand Down

0 comments on commit 34c61c2

Please sign in to comment.