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
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"] {
...
@@ -654,7 +654,8 @@ textarea[name="list-new-namelist"] {
width
:
130px
;
width
:
130px
;
}
}
#vm-details-connection-string-copy
{
.vm-details-connection-string-copy
,
#vm-details-pw-show
{
cursor
:
pointer
;
cursor
:
pointer
;
}
}
...
@@ -681,10 +682,9 @@ textarea[name="list-new-namelist"] {
...
@@ -681,10 +682,9 @@ textarea[name="list-new-namelist"] {
max-width
:
200px
;
max-width
:
200px
;
}
}
#
dashboard-vm-details-connect-command
{
.
dashboard-vm-details-connect-command
{
/* for mobile view */
/* for mobile view */
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
#store-list-list
{
#store-list-list
{
...
...
circle/dashboard/static/dashboard/vm-details.js
View file @
d0ae4fc4
...
@@ -105,19 +105,20 @@ $(function() {
...
@@ -105,19 +105,20 @@ $(function() {
$
(
"#vm-details-pw-show"
).
click
(
function
()
{
$
(
"#vm-details-pw-show"
).
click
(
function
()
{
var
input
=
$
(
this
).
parent
(
"div"
).
children
(
"input"
);
var
input
=
$
(
this
).
parent
(
"div"
).
children
(
"input"
);
var
eye
=
$
(
this
).
children
(
"#vm-details-pw-eye"
);
var
eye
=
$
(
this
).
children
(
"#vm-details-pw-eye"
);
var
span
=
$
(
this
);
eye
.
tooltip
(
"destroy"
)
span
.
tooltip
(
"destroy"
)
if
(
eye
.
hasClass
(
"fa-eye"
))
{
if
(
eye
.
hasClass
(
"fa-eye"
))
{
eye
.
removeClass
(
"fa-eye"
).
addClass
(
"fa-eye-slash"
);
eye
.
removeClass
(
"fa-eye"
).
addClass
(
"fa-eye-slash"
);
input
.
prop
(
"type"
,
"text"
);
input
.
prop
(
"type"
,
"text"
);
input
.
focus
();
input
.
select
();
eye
.
prop
(
"title"
,
"Hide password"
);
span
.
prop
(
"title"
,
gettext
(
"Hide password"
)
);
}
else
{
}
else
{
eye
.
removeClass
(
"fa-eye-slash"
).
addClass
(
"fa-eye"
);
eye
.
removeClass
(
"fa-eye-slash"
).
addClass
(
"fa-eye"
);
input
.
prop
(
"type"
,
"password"
);
input
.
prop
(
"type"
,
"password"
);
eye
.
prop
(
"title"
,
"Show password"
);
span
.
prop
(
"title"
,
gettext
(
"Show password"
)
);
}
}
eye
.
tooltip
();
span
.
tooltip
();
});
});
/* change password confirmation */
/* change password confirmation */
...
@@ -198,7 +199,7 @@ $(function() {
...
@@ -198,7 +199,7 @@ $(function() {
$
(
"#vm-details-h1-name, .vm-details-rename-button"
).
click
(
function
()
{
$
(
"#vm-details-h1-name, .vm-details-rename-button"
).
click
(
function
()
{
$
(
"#vm-details-h1-name"
).
hide
();
$
(
"#vm-details-h1-name"
).
hide
();
$
(
"#vm-details-rename"
).
css
(
'display'
,
'inline'
);
$
(
"#vm-details-rename"
).
css
(
'display'
,
'inline'
);
$
(
"#vm-details-rename-name"
).
focus
();
$
(
"#vm-details-rename-name"
).
select
();
return
false
;
return
false
;
});
});
...
@@ -206,7 +207,7 @@ $(function() {
...
@@ -206,7 +207,7 @@ $(function() {
$
(
".vm-details-home-edit-name-click"
).
click
(
function
()
{
$
(
".vm-details-home-edit-name-click"
).
click
(
function
()
{
$
(
".vm-details-home-edit-name-click"
).
hide
();
$
(
".vm-details-home-edit-name-click"
).
hide
();
$
(
"#vm-details-home-rename"
).
show
();
$
(
"#vm-details-home-rename"
).
show
();
$
(
"input"
,
$
(
"#vm-details-home-rename"
)).
focus
();
$
(
"input"
,
$
(
"#vm-details-home-rename"
)).
select
();
return
false
;
return
false
;
});
});
...
@@ -306,8 +307,8 @@ $(function() {
...
@@ -306,8 +307,8 @@ $(function() {
});
});
// select connection string
// select connection string
$
(
"
#
vm-details-connection-string-copy"
).
click
(
function
()
{
$
(
"
.
vm-details-connection-string-copy"
).
click
(
function
()
{
$
(
"#vm-details-connection-string"
).
focus
();
$
(
this
).
parent
(
"div"
).
find
(
"input"
).
select
();
});
});
$
(
"a.operation-password_reset"
).
click
(
function
()
{
$
(
"a.operation-password_reset"
).
click
(
function
()
{
...
...
circle/dashboard/templates/dashboard/vm-detail.html
View file @
d0ae4fc4
...
@@ -98,8 +98,9 @@
...
@@ -98,8 +98,9 @@
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"text"
id=
"vm-details-pw-input"
class=
"form-control input-sm input-tags"
<input
type=
"text"
id=
"vm-details-pw-input"
class=
"form-control input-sm input-tags"
value=
"{{ instance.pw }}"
spellcheck=
"false"
/>
value=
"{{ instance.pw }}"
spellcheck=
"false"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-pw-show"
>
<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>
title=
"{% trans "
Show
password
"
%}"
data-container=
"body"
>
<i
class=
"fa fa-eye"
id=
"vm-details-pw-eye"
></i>
</span>
</span>
</div>
</div>
</dd>
</dd>
...
@@ -112,13 +113,14 @@
...
@@ -112,13 +113,14 @@
</dd>
</dd>
</dl>
</dl>
{% for c in connect_commands %}
{% 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>
<span
class=
"input-group-addon input-tags"
>
{% trans "Command" %}
</span>
<input
type=
"text"
spellcheck=
"false"
<input
type=
"text"
spellcheck=
"false"
value=
"{{ c }}"
value=
"{{ c }}"
id=
"vm-details-connection-string"
class=
"form-control input-tags"
/>
id=
"vm-details-connection-string"
class=
"form-control input-tags"
/>
<span
class=
"input-group-addon input-tags"
id=
"vm-details-connection-string-copy"
>
<span
class=
"input-group-addon input-tags vm-details-connection-string-copy"
<i
class=
"fa fa-copy"
title=
"{% trans "
Select
all
"
%}"
></i>
title=
"{% trans "
Select
all
"
%}"
data-container=
"body"
>
<i
class=
"fa fa-copy"
></i>
</span>
</span>
</div>
</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