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
20fcdf2c
authored
Feb 05, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: old JS debug messages removed
parent
a12a1c6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
one/static/cloud.js
+0
-10
No files found.
one/static/cloud.js
View file @
20fcdf2c
...
@@ -32,7 +32,6 @@ $(function() {
...
@@ -32,7 +32,6 @@ $(function() {
$
(
this
).
parent
(
'.wm'
).
removeClass
(
'opened'
);
$
(
this
).
parent
(
'.wm'
).
removeClass
(
'opened'
);
$
(
this
).
next
(
'.details'
).
slideUp
(
700
);
$
(
this
).
next
(
'.details'
).
slideUp
(
700
);
}
else
{
}
else
{
console
.
log
(
'addClass'
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
$
(
this
).
parent
(
'.wm'
).
addClass
(
'opened'
);
$
(
this
).
next
(
'.details'
).
slideDown
(
700
);
$
(
this
).
next
(
'.details'
).
slideDown
(
700
);
}
}
...
@@ -86,7 +85,6 @@ $(function() {
...
@@ -86,7 +85,6 @@ $(function() {
var
disabled
=
false
;
var
disabled
=
false
;
return
function
()
{
return
function
()
{
if
(
disabled
)
{
if
(
disabled
)
{
console
.
log
(
'disabled'
);
return
return
};
};
disabled
=
true
;
disabled
=
true
;
...
@@ -218,8 +216,6 @@ $(function() {
...
@@ -218,8 +216,6 @@ $(function() {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
self
.
uploadURL
(
data
.
url
);
self
.
uploadURL
(
data
.
url
);
}
}
}).
error
(
function
()
{
console
.
log
(
'asd'
,
arguments
)
})
})
}
}
self
.
newFolderName
=
ko
.
observable
();
self
.
newFolderName
=
ko
.
observable
();
...
@@ -252,14 +248,12 @@ $(function() {
...
@@ -252,14 +248,12 @@ $(function() {
if
(
tests
.
formdata
)
{
if
(
tests
.
formdata
)
{
var
xhr
=
new
XMLHttpRequest
();
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'POST'
,
self
.
uploadURL
());
xhr
.
open
(
'POST'
,
self
.
uploadURL
());
console
.
log
(
xhr
);
xhr
.
onload
=
function
()
{
xhr
.
onload
=
function
()
{
self
.
uploadProgress
(
'0%'
);
self
.
uploadProgress
(
'0%'
);
loadFolder
(
self
.
currentPath
());
loadFolder
(
self
.
currentPath
());
};
};
if
(
tests
.
progress
)
{
if
(
tests
.
progress
)
{
xhr
.
upload
.
onprogress
=
function
(
event
)
{
xhr
.
upload
.
onprogress
=
function
(
event
)
{
console
.
log
(
event
);
if
(
event
.
lengthComputable
)
{
if
(
event
.
lengthComputable
)
{
var
complete
=
(
event
.
loaded
/
event
.
total
*
100
|
0
);
var
complete
=
(
event
.
loaded
/
event
.
total
*
100
|
0
);
//progress.value = progress.innerHTML = complete;
//progress.value = progress.innerHTML = complete;
...
@@ -272,10 +266,8 @@ $(function() {
...
@@ -272,10 +266,8 @@ $(function() {
}
}
}
}
document
.
addEventListener
(
'drop'
,
function
(
e
)
{
document
.
addEventListener
(
'drop'
,
function
(
e
)
{
console
.
log
(
e
);
e
.
stopPropagation
();
e
.
stopPropagation
();
e
.
preventDefault
();
e
.
preventDefault
();
console
.
log
(
e
.
dataTransfer
.
files
)
readfiles
(
e
.
dataTransfer
.
files
);
readfiles
(
e
.
dataTransfer
.
files
);
return
false
;
return
false
;
});
});
...
@@ -309,13 +301,11 @@ $(function() {
...
@@ -309,13 +301,11 @@ $(function() {
var
model
=
new
Model
();
var
model
=
new
Model
();
ko
.
applyBindings
(
model
);
ko
.
applyBindings
(
model
);
document
.
addEventListener
(
'dragenter'
,
function
(
e
)
{
document
.
addEventListener
(
'dragenter'
,
function
(
e
)
{
console
.
log
(
e
);
e
.
stopPropagation
();
e
.
stopPropagation
();
e
.
preventDefault
();
e
.
preventDefault
();
return
false
;
return
false
;
});
});
document
.
addEventListener
(
'dragover'
,
function
(
e
)
{
document
.
addEventListener
(
'dragover'
,
function
(
e
)
{
console
.
log
(
e
);
e
.
stopPropagation
();
e
.
stopPropagation
();
e
.
preventDefault
();
e
.
preventDefault
();
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