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
68a128a5
authored
May 05, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: minor js fixes for description and name edit
parent
b743536b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
circle/dashboard/static/dashboard/vm-details.js
+7
-0
No files found.
circle/dashboard/static/dashboard/vm-details.js
View file @
68a128a5
...
@@ -183,6 +183,7 @@ $(function() {
...
@@ -183,6 +183,7 @@ $(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"
).
focus
();
return
false
;
});
});
/* rename in home tab */
/* rename in home tab */
...
@@ -190,6 +191,7 @@ $(function() {
...
@@ -190,6 +191,7 @@ $(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"
)).
focus
();
return
false
;
});
});
/* rename ajax */
/* rename ajax */
...
@@ -219,6 +221,11 @@ $(function() {
...
@@ -219,6 +221,11 @@ $(function() {
$
(
".vm-details-home-edit-description-click"
).
click
(
function
()
{
$
(
".vm-details-home-edit-description-click"
).
click
(
function
()
{
$
(
".vm-details-home-edit-description-click"
).
hide
();
$
(
".vm-details-home-edit-description-click"
).
hide
();
$
(
"#vm-details-home-description"
).
show
();
$
(
"#vm-details-home-description"
).
show
();
var
ta
=
$
(
"#vm-details-home-description textarea"
);
var
tmp
=
ta
.
val
();
ta
.
val
(
""
);
ta
.
focus
();
ta
.
val
(
tmp
)
return
false
;
return
false
;
});
});
...
...
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