Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
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
c6ded23e
authored
Feb 14, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: password field visibility toggle
parent
71a17a4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
one/static/base.less
+11
-0
one/static/cloud.js
+12
-0
No files found.
one/static/base.less
View file @
c6ded23e
...
@@ -225,3 +225,14 @@ textarea {
...
@@ -225,3 +225,14 @@ textarea {
.hilight {
.hilight {
background-color: #ff6;
background-color: #ff6;
}
}
.hidden-password {
padding-right: 25px;
background-image: url(icons/eye-half.png);
background-repeat: no-repeat;
background-position: right center;
cursor: pointer;
&.shown {
background-image: url(icons/eye.png);
}
}
one/static/cloud.js
View file @
c6ded23e
...
@@ -142,6 +142,18 @@ $(function() {
...
@@ -142,6 +142,18 @@ $(function() {
$
(
'#vm-password-show'
).
click
(
function
(){
$
(
'#vm-password-show'
).
click
(
function
(){
$
(
'#vm-password-show'
).
hide
();
$
(
'#vm-password-show'
).
hide
();
$
(
'#vm-password'
).
show
();
$
(
'#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'
);
}
else
{
$
(
this
).
val
(
'******'
);
$
(
this
).
removeClass
(
'shown'
);
}
})
})
toggleDetails
.
apply
(
$
(
'.selected-summary'
));
toggleDetails
.
apply
(
$
(
'.selected-summary'
));
toggleDetails
.
apply
(
$
(
'.selected-summary'
));
toggleDetails
.
apply
(
$
(
'.selected-summary'
));
...
...
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