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
Commit
bc0d51ed
authored
Feb 06, 2013
by
x
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://giccero.cloud.ik.bme.hu/cloud
parents
1f45bc49
11578d5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
one/static/cloud.js
+13
-3
No files found.
one/static/cloud.js
View file @
bc0d51ed
...
...
@@ -280,10 +280,18 @@ $(function() {
* Renames the specified file
*/
self
.
rename
=
function
(
item
,
e
)
{
$
(
e
.
target
).
parent
().
parent
().
parent
().
unbind
(
'click'
);
var
oldName
=
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name'
).
html
();
$
(
e
.
target
).
parent
().
unbind
(
'click'
).
click
(
function
(){
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name'
).
html
(
oldName
);
$
(
e
.
target
).
parent
().
click
(
function
(
e
){
self
.
rename
(
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
()
{
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name input[type=submit]'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
var
newName
=
$
(
e
.
target
).
parent
().
parent
().
parent
().
find
(
'.name input[type=text]'
).
val
();
$
.
ajax
({
type
:
'POST'
,
...
...
@@ -295,6 +303,7 @@ $(function() {
loadFolder
(
self
.
currentPath
());
}
})
return
false
;
})
}
...
...
@@ -354,7 +363,9 @@ $(function() {
var
xhr
=
new
XMLHttpRequest
();
var
start
=
new
Date
().
getTime
();
xhr
.
open
(
'POST'
,
self
.
uploadURL
());
xhr
.
onreadystatechange
=
function
(){
console
.
log
(
xhr
,
arguments
)}
xhr
.
onload
=
xhr
.
onerror
=
function
()
{
console
.
log
(
xhr
.
status
);
$
(
'.file-upload'
).
removeClass
(
'opened'
);
$
(
'.file-upload .details'
).
slideUp
(
700
);
$
(
'#upload-zone'
).
show
();
...
...
@@ -393,7 +404,6 @@ $(function() {
}
}
}
xhr
.
send
(
formData
);
}
}
...
...
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