Skip to content

Commit

Permalink
fix Mte90#233
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed May 29, 2019
1 parent 955b628 commit e254fc8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions js/glotdict.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ if (jQuery('.filters-toolbar:last div:first').length > 0) {

jQuery('.glossary-word').each(function() {
var $this = jQuery(this);
var line = $this.parents().eq(3).attr('row');
if (typeof line === 'undefined') {
line = $this.parents().eq(4).attr('row');
}
var line = $this.parents().eq(7).attr('row');
jQuery('#preview-' + line).addClass('has-glotdict');
$this.wrap('<a href="https://translate.wordpress.org/consistency?search=' + $this.text() + '&amp;set=' + gd_get_lang_consistency() + '%2Fdefault" target="_blank" rel="noreferrer noopener"></a>');
});
Expand Down

0 comments on commit e254fc8

Please sign in to comment.