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
40d71d32
authored
Feb 05, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
store: ajax rename
parent
0a2066bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
one/static/cloud.js
+9
-0
one/templates/box-filelist.html
+1
-1
No files found.
one/static/cloud.js
View file @
40d71d32
...
@@ -199,6 +199,15 @@ $(function() {
...
@@ -199,6 +199,15 @@ $(function() {
}
}
})
})
}
}
self
.
rename
=
function
(
item
,
e
){
$
(
e
.
target
).
parent
().
parent
().
parent
().
unbind
(
'click'
);
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name'
).
html
(
'<input type="text" value="'
+
item
.
originalName
+
'" />\
<input type="submit" value="Átnevezés" />'
);
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name input[type=submit]'
).
click
(
function
(){
var
newName
=
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name input[type=text]'
).
val
();
loadFolder
(
self
.
currentPath
());
})
}
self
.
uploadURL
=
ko
.
observable
(
'/'
);
self
.
uploadURL
=
ko
.
observable
(
'/'
);
self
.
getUploadURL
=
function
()
{
self
.
getUploadURL
=
function
()
{
$
.
ajax
({
$
.
ajax
({
...
...
one/templates/box-filelist.html
View file @
40d71d32
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<div
class=
"name"
data-bind=
"text: name, attr: {class: getTypeClass}"
></div>
<div
class=
"name"
data-bind=
"text: name, attr: {class: getTypeClass}"
></div>
<div
class=
"info"
data-bind=
"text: size"
></div>
<div
class=
"info"
data-bind=
"text: size"
></div>
<div
class=
"actions"
>
<div
class=
"actions"
>
<a
href=
"#"
>
<a
href=
"#"
data-bind=
"click: $parent.rename, clickBubble: false"
>
<img
src=
"/static/icons/pencil.png"
alt=
"rename"
/>
<img
src=
"/static/icons/pencil.png"
alt=
"rename"
/>
</a>
</a>
<a
href=
"#"
data-bind=
"click: $parent.delete, clickBubble: false"
>
<a
href=
"#"
data-bind=
"click: $parent.delete, clickBubble: 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