lazy
This commit is contained in:
parent
a5174e935a
commit
f81d7e5b59
|
@ -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",
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<script src="{{static_js}}"></script>
|
||||
</head>
|
||||
|
||||
<body style="display: flex; flex-flow: row; height: 100%; width: 100%; margin: 0; padding: 0;">
|
||||
<body style="display: flex; flex-flow: row; height: 100%; width: 100%; margin: 0; padding: 0;" onkeydown="keyboardNavigation(true);" onkeyup="keyboardNavigation(false);">
|
||||
<div style="display: flex; flex-flow: column; height: 100%; width: 80%; margin: 0; padding: 0;">
|
||||
<div id="hamburgerMenu" style="display: flex; background: #cfcfcf; flex-flow: row; width: 100%; height: 50px; overflow: scroll;">
|
||||
|
||||
|
@ -99,8 +99,7 @@
|
|||
<p style="margin: 5px;">Action:<br />
|
||||
<input type="checkbox" id="sidepanel-display-properties" value="1" onclick="settingChange("properties");">Interactive property inspector</input><br />
|
||||
<input type="checkbox" id="sidepanel-display-highlight" value="1" onclick="settingChange("highlight");">Highlight focused object</input><br />
|
||||
<input type="checkbox" id="sidepanel-display-keyboard" value="1" onclick="settingChange("keyboard");">Use keyboard to move viewer</input><br />
|
||||
<input type="checkbox" id="sidepanel-display-move" value="1" onclick="settingChange("move");">Move objects</input>
|
||||
<input type="checkbox" id="sidepanel-display-move" value="1" onclick="settingChange("move");" disabled="true">Move objects</input>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user