Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
964aa99
1
Parent(s):
e691f5a
WIP: 够宽时同时打开左右栏
Browse files
web_assets/javascript/webui.js
CHANGED
@@ -102,13 +102,14 @@ var menuOpening = false;
|
|
102 |
var toolboxOpening = false;
|
103 |
var shouldAutoClose = true;
|
104 |
var wantOpenMenu = windowWidth > 768;
|
105 |
-
var wantOpenToolbox =
|
106 |
|
107 |
function adjustSide() {
|
108 |
if (windowWidth >= 1024) {
|
109 |
shouldAutoClose = true;
|
110 |
if (wantOpenMenu) {
|
111 |
openSide(menu);
|
|
|
112 |
} else if (wantOpenToolbox) {
|
113 |
openSide(toolbox);
|
114 |
} else {
|
|
|
102 |
var toolboxOpening = false;
|
103 |
var shouldAutoClose = true;
|
104 |
var wantOpenMenu = windowWidth > 768;
|
105 |
+
var wantOpenToolbox = windowWidth >= 1024;
|
106 |
|
107 |
function adjustSide() {
|
108 |
if (windowWidth >= 1024) {
|
109 |
shouldAutoClose = true;
|
110 |
if (wantOpenMenu) {
|
111 |
openSide(menu);
|
112 |
+
if (wantOpenToolbox) openSide(toolbox);
|
113 |
} else if (wantOpenToolbox) {
|
114 |
openSide(toolbox);
|
115 |
} else {
|