Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
72117133
authored
Feb 27, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: refactor console js+markup
parent
fa87d987
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
circle/dashboard/templates/dashboard/vm-detail/console.html
+4
-9
No files found.
circle/dashboard/templates/dashboard/vm-detail/console.html
View file @
72117133
<div
class=
"btn-toolbar"
>
<div
class=
"btn-toolbar"
>
<button
id=
"sendCtrlAltDelButton"
class=
"btn btn-danger small"
href=
"#"
>
Send CtrlAltDel
</button>
<button
id=
"sendCtrlAltDelButton"
class=
"btn btn-danger small"
>
Send CtrlAltDel
</button>
<button
id=
"sendPasswordButton"
class=
"btn btn-default small"
href=
"#"
>
Type password
</button>
<button
id=
"sendPasswordButton"
class=
"btn btn-default small"
>
Type password
</button>
</div>
</div>
<div
class=
"alert alert-info"
id=
"noVNC_status"
>
<div
class=
"alert alert-info"
id=
"noVNC_status"
>
</div>
</div>
...
@@ -20,15 +20,10 @@
...
@@ -20,15 +20,10 @@
var
rfb
;
var
rfb
;
function
updateState
(
rfb
,
state
,
oldstate
,
msg
)
{
function
updateState
(
rfb
,
state
,
oldstate
,
msg
)
{
var
s
,
sb
,
cad
$
(
'#_console .btn-toolbar button'
).
attr
(
'disabled'
,
!
(
state
===
"normal"
));
s
=
$
(
'#noVNC_status'
)[
0
];
cad
=
$
(
'#sendCtrlAltDelButton'
)[
0
];
if
(
state
===
"normal"
)
{
cad
.
disabled
=
false
;
}
else
{
cad
.
disabled
=
true
;
}
if
(
typeof
(
msg
)
!==
'undefined'
)
{
if
(
typeof
(
msg
)
!==
'undefined'
)
{
s
.
innerHTML
=
msg
;
$
(
'#noVNC_status'
).
html
(
msg
)
;
}
}
}
}
...
...
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