Skip to content

Commit

Permalink
Fix subtitle display on item page, and another possible <wbr>
Browse files Browse the repository at this point in the history
  • Loading branch information
Ereza committed Aug 5, 2015
1 parent ddf3106 commit 96c2ea7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "__MSG_app_name__",
"description": "__MSG_app_description__",
"version": "1.0.2",
"version": "1.0.3",
"default_locale": "en",

"permissions": [
Expand Down
4 changes: 2 additions & 2 deletions extension/untranslate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ function untranslateNow(){

for (var i=0;i<translatedElements.length;i++){
var currentElement = translatedElements[i];
var untranslatedText = currentElement.getAttribute('data-mtdes').replace('<wbr />','').replace('<wbr/>','');
if (isItemDetailPage){
var untranslatedText = currentElement.getAttribute('data-mtdes').replace('<wbr />','').replace('<wbr/>','').replace('<wbr>','');
if (isItemDetailPage && currentElement.getAttribute('class')=='it-sttl'){
//This is a special case: we have to go up two levels so we can replace the text correctly.
var childNodes = currentElement.parentNode.parentNode.childNodes;
for (var j=0;j<childNodes.length;j++){
Expand Down

0 comments on commit 96c2ea7

Please sign in to comment.