Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio
Commits
b932fa55
Commit
b932fa55
authored
Sep 19, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jslint errors
parent
e9919b7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/jio.storage/davstorage.js
src/jio.storage/davstorage.js
+4
-4
test/jio.storage/davstorage.livetests.js
test/jio.storage/davstorage.livetests.js
+1
-1
No files found.
src/jio.storage/davstorage.js
View file @
b932fa55
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
* @return {String} The original name
* @return {String} The original name
*/
*/
function
restoreName
(
secured_name
)
{
function
restoreName
(
secured_name
)
{
return
decodeURI
(
secured_name
.
replace
(
/%3F/ig
,
'
?
'
).
replace
(
/%2F/ig
,
'
/
'
));
return
decodeURI
(
secured_name
.
replace
(
/%3F/ig
,
'
?
'
).
replace
(
/%2F/ig
,
'
/
'
));
}
}
/**
/**
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
*/
*/
var
ajax
=
{
var
ajax
=
{
"
none
"
:
function
(
method
,
type
,
url
,
data
)
{
"
none
"
:
function
(
method
,
type
,
url
,
data
)
{
var
headers
;
var
headers
=
{}
;
if
(
method
===
"
PROPFIND
"
)
{
if
(
method
===
"
PROPFIND
"
)
{
headers
.
Depth
=
"
1
"
;
headers
.
Depth
=
"
1
"
;
}
}
...
@@ -337,9 +337,9 @@
...
@@ -337,9 +337,9 @@
textContent
.
split
(
'
/
'
).
slice
(
-
1
)[
0
];
textContent
.
split
(
'
/
'
).
slice
(
-
1
)[
0
];
row
.
id
=
fileNameToIds
(
row
.
id
);
row
.
id
=
fileNameToIds
(
row
.
id
);
if
(
row
.
id
.
length
!==
1
)
{
if
(
row
.
id
.
length
!==
1
)
{
row
=
undefined
;
row
=
undefined
;
}
else
{
}
else
{
row
.
id
=
row
.
id
[
0
];
row
.
id
=
row
.
id
[
0
];
}
}
if
(
row
!==
undefined
)
{
if
(
row
!==
undefined
)
{
rows
[
rows
.
length
]
=
row
;
rows
[
rows
.
length
]
=
row
;
...
...
test/jio.storage/davstorage.livetests.js
View file @
b932fa55
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
function
list2DocumentsTest
(
answer
)
{
function
list2DocumentsTest
(
answer
)
{
if
(
answer
&&
answer
.
data
&&
Array
.
isArray
(
answer
.
data
.
rows
))
{
if
(
answer
&&
answer
.
data
&&
Array
.
isArray
(
answer
.
data
.
rows
))
{
answer
.
data
.
rows
.
sort
(
function
(
a
,
b
)
{
answer
.
data
.
rows
.
sort
(
function
(
a
)
{
return
a
.
id
===
"
b
"
?
1
:
0
;
return
a
.
id
===
"
b
"
?
1
:
0
;
});
});
}
}
...
...
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