Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
Ivan Tyagov
jio
Commits
235101a8
Commit
235101a8
authored
Apr 28, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unsupported options to dav storage
parent
37d48b2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
src/jio.storage/davstorage.js
src/jio.storage/davstorage.js
+20
-1
No files found.
src/jio.storage/davstorage.js
View file @
235101a8
...
@@ -800,6 +800,15 @@
...
@@ -800,6 +800,15 @@
then
(
o
.
success
,
o
.
reject
,
o
.
notifyProgress
);
then
(
o
.
success
,
o
.
reject
,
o
.
notifyProgress
);
};
};
function
makeUnsupportedOptionsError
(
rejected_options
)
{
return
{
"
status
"
:
501
,
"
error
"
:
"
UnsupportedOptionError
"
,
"
reason
"
:
"
unsupported option
"
,
"
arguments
"
:
rejected_options
};
}
/**
/**
* Retrieve a list of present document
* Retrieve a list of present document
*
*
...
@@ -871,9 +880,19 @@
...
@@ -871,9 +880,19 @@
e
.
target
.
statusText
,
e
.
target
.
statusText
,
o
.
error_message
o
.
error_message
);
);
}
},
rejected_options
:
[]
};
};
Object
.
keys
(
options
).
forEach
(
function
(
opt
)
{
if
(
opt
!==
"
include_docs
"
)
{
o
.
rejected_options
.
push
(
opt
);
}
});
if
(
o
.
rejected_options
.
length
)
{
return
command
.
error
(
makeUnsupportedOptionsError
(
o
.
rejected_options
));
}
this
.
_allDocs
(
param
,
options
).
this
.
_allDocs
(
param
,
options
).
then
(
o
.
getAllMetadataIfNecessary
).
then
(
o
.
getAllMetadataIfNecessary
).
then
(
o
.
success
,
o
.
reject
,
o
.
notifyProgress
);
then
(
o
.
success
,
o
.
reject
,
o
.
notifyProgress
);
...
...
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