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
Commit
8f1a9290
authored
Feb 06, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: new-folder input focus added
parent
d526372b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
one/static/cloud.js
+3
-0
one/templates/box-filelist.html
+1
-1
No files found.
one/static/cloud.js
View file @
8f1a9290
...
@@ -84,6 +84,9 @@ $(function() {
...
@@ -84,6 +84,9 @@ $(function() {
console
.
log
(
s
,
parseFloat
(
w
));
console
.
log
(
s
,
parseFloat
(
w
));
return
'1px solid hsla('
+
(
120
-
parseFloat
(
w
)
/
438
*
120
).
toFixed
(
0
)
+
',100%,30%,0.4)'
;
return
'1px solid hsla('
+
(
120
-
parseFloat
(
w
)
/
438
*
120
).
toFixed
(
0
)
+
',100%,30%,0.4)'
;
}(
$
(
this
).
css
(
'width'
)));
}(
$
(
this
).
css
(
'width'
)));
});
$
(
'#new-folder'
).
click
(
function
(){
$
(
'#new-folder-form input'
)[
0
].
focus
();
})
})
/**
/**
...
...
one/templates/box-filelist.html
View file @
8f1a9290
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</div>
</div>
</li>
</li>
<li
class=
"wm small-row"
>
<li
class=
"wm small-row"
>
<div
class=
"summary"
>
<div
class=
"summary"
id=
"new-folder"
>
<div
class=
"name filetype-new-folder"
>
{% trans "Create folder" %}
</div>
<div
class=
"name filetype-new-folder"
>
{% trans "Create folder" %}
</div>
<div
id=
"new-folder-form"
>
<div
id=
"new-folder-form"
>
<input
type=
"text"
placeholder=
"{% trans "
Name
of
new
folder
"
%}"
data-bind=
"value: newFolderName, click: function(m,e){console.log(arguments); e.preventDefault(); e.stopPropagation(); return false;}"
/>
<input
type=
"text"
placeholder=
"{% trans "
Name
of
new
folder
"
%}"
data-bind=
"value: newFolderName, click: function(m,e){console.log(arguments); e.preventDefault(); e.stopPropagation(); 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