This commit is contained in:
2020-05-02 15:10:08 +08:00
parent a5174e935a
commit f81d7e5b59
2 changed files with 8 additions and 5 deletions

View File

@ -3,7 +3,6 @@ currentSettings = {
"plink": true,
"properties": true,
"highlight": true,
"keyboard": true,
"move": true
};
$(document).ready(function () {
@ -70,7 +69,8 @@ function highlightLink(target) {
}
// double one-click, only cancel highlight and don't apply any hightlight
if (realTarget == previousHighlight) {
// or user disable hightlight
if ((realTarget == previousHighlight) || !currentSettings["highlight"]) {
previousHighlight = "";
} else {
//apply new highlight
@ -97,6 +97,10 @@ function highlightLink(target) {
}
function queryInfo(obj) {
// confirm user enable this function
if (!currentSettings["properties"])
return;
$.post(window.location,
{
operation: "info",