Skip to content

Commit

Permalink
Merge pull request #57 from GDG-Xian/fix_capslock_style_break
Browse files Browse the repository at this point in the history
Fix capslock style break
  • Loading branch information
greatghoul committed Mar 6, 2016
2 parents 8572e23 + c434986 commit 7f1f434
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新记录

V1.5.1 - 2016-03-06

- 解决开启链接划词模式会破坏某些网页布局的问题

V1.5 - 2015-12-27

- 使用黑科技重新实现百度词典翻译
Expand Down
3 changes: 2 additions & 1 deletion src/css/contentstyle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ a.transit-notify-close {
@include link-colors(#aaa, #999, #999, #aaa);
}

.transit-link-inspect-mode a {
// typo `translt` to ignore style reset.
.translt-link-inspect-mode a {
text-decoration: none !important;
cursor: text !important;
pointer-events: none !important;
Expand Down
4 changes: 2 additions & 2 deletions src/js/config/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ app.setup({
app.showUpdateNotes = function() {
chrome.notifications.create("update_notes", {
type: "list",
title: "TransIt V1.5 更新记录",
title: "TransIt V1.5.1 更新记录",
message: "",
iconUrl: "img/icon48.png",
items: [
{
title: '',
message: '使用黑科技让百度词典翻译又回来了'
message: '解决开启链接划词模式会破坏某些网页布局的问题'
}
]
}, function () {});
Expand Down
4 changes: 2 additions & 2 deletions src/js/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ function toggleLinkInspectMode(evt) {
clearTimeout(timer);
}, 500);
} else {
$('body').toggleClass('transit-link-inspect-mode');
$('body').toggleClass('translt-link-inspect-mode');
capslockEvents = [];
}
}
}

function transIt(evt) {
$('body').removeClass('transit-link-inspect-mode');
$('body').removeClass('translt-link-inspect-mode');

var selection = window.getSelection();
var text = $.trim(selection.toString());
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "TransIt",
"description": "让划词翻译更简单",
"version": "1.5",
"version": "1.5.1",

"icons": {
"48": "img/icon48.png",
Expand Down

0 comments on commit 7f1f434

Please sign in to comment.