Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
Commit
d0ae4fc4
authored
Sep 01, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: connect command select js fixes
parent
394c567f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
17 deletions
+20
-17
circle/dashboard/static/dashboard/dashboard.css
+3
-3
circle/dashboard/static/dashboard/vm-details.js
+10
-9
circle/dashboard/templates/dashboard/vm-detail.html
+7
-5
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
d0ae4fc4
...
...
@@ -654,7 +654,8 @@ textarea[name="list-new-namelist"] {
width
:
130px
;
}
#vm-details-connection-string-copy
{
.vm-details-connection-string-copy
,
#vm-details-pw-show
{
cursor
:
pointer
;
}
...
...
@@ -681,10 +682,9 @@ textarea[name="list-new-namelist"] {
max-width
:
200px
;
}
#
dashboard-vm-details-connect-command
{
.
dashboard-vm-details-connect-command
{
/* for mobile view */
margin-bottom
:
20px
;
}
#store-list-list
{
...
...
circle/dashboard/static/dashboard/vm-details.js
View file @
d0ae4fc4
...
...
@@ -105,19 +105,20 @@ $(function() {
$
(
"#vm-details-pw-show"
).
click
(
function
()
{
var
input
=
$
(
this
).
parent
(
"div"
).
children
(
"input"
);
var
eye
=
$
(
this
).
children
(
"#vm-details-pw-eye"
);
var
span
=
$
(
this
);
eye
.
tooltip
(
"destroy"
)
span
.
tooltip
(
"destroy"
)
if
(
eye
.
hasClass
(
"fa-eye"
))
{
eye
.
removeClass
(
"fa-eye"
).
addClass
(
"fa-eye-slash"
);
input
.
prop
(
"type"
,
"text"
);
input
.
focus
();
eye
.
prop
(
"title"
,
"Hide password"
);
input
.
select
();
span
.
prop
(
"title"
,
gettext
(
"Hide password"
)
);
}
else
{
eye
.
removeClass
(
"fa-eye-slash"
).
addClass
(
"fa-eye"
);
input
.
prop
(
"type"
,
"password"
);
eye
.
prop
(
"title"
,
"Show password"
);
span
.
prop
(
"title"
,
gettext
(
"Show password"
)
);
}
eye
.
tooltip
();
span
.
tooltip
();
});
/* change password confirmation */
...
...
@@ -198,7 +199,7 @@ $(function() {
$
(
"#vm-details-h1-name, .vm-details-rename-button"
).
click
(
function
()
{
$
(
"#vm-details-h1-name"
).
hide
();
$
(
"#vm-details-rename"
).
css
(
'display'
,
'inline'
);
$
(
"#vm-details-rename-name"
).
focus
();
$
(
"#vm-details-rename-name"
).
select
();
return
false
;
});
...
...
@@ -206,7 +207,7 @@ $(function() {
$
(
".vm-details-home-edit-name-click"
).
click
(
function
()
{
$
(
".vm-details-home-edit-name-click"
).
hide
();
$
(
"#vm-details-home-rename"
).
show
();
$
(
"input"
,
$
(
"#vm-details-home-rename"
)).
focus
();
$
(
"input"
,
$
(
"#vm-details-home-rename"
)).
select
();
return
false
;
});
...
...
@@ -306,8 +307,8 @@ $(function() {
});
// select connection string
$
(
"
#
vm-details-connection-string-copy"
).
click
(
function
()
{
$
(
"#vm-details-connection-string"
).
focus
();
$
(
"
.
vm-details-connection-string-copy"
).
click
(
function
()
{
$
(
this
).
parent
(
"div"
).
find
(
"input"
).
select
();
});
$
(
"a.operation-password_reset"
).
click
(
function
()
{
...
...
circle/dashboard/templates/dashboard/vm-detail.html
View file @
d0ae4fc4
...
...
@@ -98,8 +98,9 @@
<div
class=
"input-group"
>
<input
type=
"text"
id=
"vm-details-pw-input"
class=
"form-control input-sm input-tags"
value=
"{{ instance.pw }}"
spellcheck=
"false"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-pw-show"
>
<i
class=
"fa fa-eye"
id=
"vm-details-pw-eye"
title=
"Show password"
></i>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-pw-show"
title=
"{% trans "
Show
password
"
%}"
data-container=
"body"
>
<i
class=
"fa fa-eye"
id=
"vm-details-pw-eye"
></i>
</span>
</div>
</dd>
...
...
@@ -112,13 +113,14 @@
</dd>
</dl>
{% for c in connect_commands %}
<div
class=
"input-group
"
id=
"
dashboard-vm-details-connect-command"
>
<div
class=
"input-group
dashboard-vm-details-connect-command"
>
<span
class=
"input-group-addon input-tags"
>
{% trans "Command" %}
</span>
<input
type=
"text"
spellcheck=
"false"
value=
"{{ c }}"
id=
"vm-details-connection-string"
class=
"form-control input-tags"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-connection-string-copy"
>
<i
class=
"fa fa-copy"
title=
"{% trans "
Select
all
"
%}"
></i>
<span
class=
"input-group-addon input-tags vm-details-connection-string-copy"
title=
"{% trans "
Select
all
"
%}"
data-container=
"body"
>
<i
class=
"fa fa-copy"
></i>
</span>
</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