Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
7c76fd32
Commit
7c76fd32
authored
Oct 04, 2013
by
Joel Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #308 from samhed/autoconnect
Autoconnect option as URL query
parents
4c0b680a
f8ddfc73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
ui.js
include/ui.js
+14
-3
No files found.
include/ui.js
View file @
7c76fd32
...
...
@@ -33,7 +33,7 @@ load: function (callback) {
// Render default UI and initialize settings menu
start
:
function
(
callback
)
{
var
html
=
''
,
i
,
sheet
,
sheets
,
llevels
,
port
;
var
html
=
''
,
i
,
sheet
,
sheets
,
llevels
,
port
,
autoconnect
;
// Stylesheet selection dropdown
sheet
=
WebUtil
.
selectStylesheet
();
...
...
@@ -86,6 +86,15 @@ start: function(callback) {
'onUpdateState'
:
UI
.
updateState
,
'onClipboard'
:
UI
.
clipReceive
,
'onDesktopName'
:
UI
.
updateDocumentTitle
});
autoconnect
=
WebUtil
.
getQueryVar
(
'autoconnect'
,
false
);
if
(
autoconnect
===
'true'
||
autoconnect
==
'1'
)
{
autoconnect
=
true
;
UI
.
connect
();
}
else
{
autoconnect
=
false
;
}
UI
.
updateVisualState
();
// Unfocus clipboard when over the VNC area
...
...
@@ -135,8 +144,10 @@ start: function(callback) {
// Open the description dialog
$D
(
'noVNC_description'
).
style
.
display
=
"block"
;
}
else
{
// Open the connect panel on first load
UI
.
toggleConnectPanel
();
// Show the connect panel on first load unless autoconnecting
if
(
autoconnect
===
UI
.
connSettingsOpen
)
{
UI
.
toggleConnectPanel
();
}
}
// Add mouse event click/focus/blur event handlers to the UI
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment