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
48a28dec
authored
Feb 21, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: password display implementation changed
parent
dcd8639d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
16 deletions
+6
-16
one/static/script/cloud.js
+5
-15
one/templates/vm-credentials.html
+1
-1
No files found.
one/static/script/cloud.js
View file @
48a28dec
...
...
@@ -179,24 +179,14 @@ $(function() {
$
(
'#new-group-semester'
).
change
(
updateSummary
);
$
(
'#new-group-members'
).
change
(
updateSummary
);
});
$
(
'#vm-password-show'
).
click
(
function
()
{
$
(
'#vm-password-show'
).
hide
();
$
(
'#vm-password'
).
show
();
});
$
(
'.hidden-password'
).
each
(
function
()
{
$
(
this
).
val
(
'******'
);
});
$
(
'.hidden-password'
).
click
(
function
()
{
if
(
!
$
(
this
).
hasClass
(
'shown'
))
{
$
(
this
).
val
(
$
(
this
).
data
(
'value'
));
$
(
this
).
addClass
(
'shown'
);
if
(
$
(
this
).
attr
(
'type'
)
==
'password'
){
$
(
this
).
attr
(
'type'
,
'text'
);
}
else
{
$
(
this
).
val
(
'******'
);
$
(
this
).
removeClass
(
'shown'
);
$
(
this
).
attr
(
'type'
,
'password'
);
}
})
toggleDetails
.
apply
(
$
(
'.selected-summary'
));
toggleDetails
.
apply
(
$
(
'.selected-summary'
));
});
$
(
'.selected-summary'
).
next
().
show
();
/**
* Connect button new window
*/
...
...
one/templates/vm-credentials.html
View file @
48a28dec
...
...
@@ -20,7 +20,7 @@
</tr>
<tr>
<th>
{% trans "Password" %}:
</th>
<td><input
type=
"
text"
class=
"hidden-password"
data-
value=
"{{ i.pw }}"
/></td>
<td><input
type=
"
password"
class=
"hidden-password"
value=
"{{ i.pw }}"
/></td>
</tr>
</table>
</div>
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