Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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_mebibou
Commits
fae06950
Commit
fae06950
authored
Mar 12, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jslint erp5storage.js
parent
b9233766
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/jio.storage/erp5storage.js
src/jio.storage/erp5storage.js
+7
-7
No files found.
src/jio.storage/erp5storage.js
View file @
fae06950
...
...
@@ -177,9 +177,9 @@
RSVP
.
resolve
().
then
(
function
()
{
var
view
=
ERP5Storage
.
onView
[
options
.
_view
||
this
.
_default_view
]
||
ERP5Storage
.
onView
.
default
;
ERP5Storage
.
onView
[
"
default
"
]
;
if
(
typeof
view
[
method
]
!==
"
function
"
)
{
view
=
ERP5Storage
.
onView
.
default
;
view
=
ERP5Storage
.
onView
[
"
default
"
]
;
}
return
view
[
method
].
call
(
this
,
param
,
options
);
}.
bind
(
this
)).
...
...
@@ -224,7 +224,7 @@
ERP5Storage
.
getSiteDocument
=
getSiteDocument
;
ERP5Storage
.
onView
=
{};
ERP5Storage
.
onView
.
default
=
{};
ERP5Storage
.
onView
[
"
default
"
]
=
{};
// XXX docstring
function
onViewDefaultGet
(
param
,
options
)
{
...
...
@@ -252,10 +252,10 @@
return
{
"
data
"
:
result
};
});
}
ERP5Storage
.
onView
.
default
.
get
=
onViewDefaultGet
;
ERP5Storage
.
onView
[
"
default
"
]
.
get
=
onViewDefaultGet
;
// XXX docstring
ERP5Storage
.
onView
.
default
.
post
=
function
(
metadata
,
options
)
{
ERP5Storage
.
onView
[
"
default
"
]
.
post
=
function
(
metadata
,
options
)
{
return
getSiteDocument
(
this
.
_url
)
.
then
(
function
(
site_hal
)
{
/*jslint forin: true */
...
...
@@ -285,7 +285,7 @@
};
// XXX docstring
ERP5Storage
.
onView
.
default
.
put
=
function
(
metadata
,
options
)
{
ERP5Storage
.
onView
[
"
default
"
]
.
put
=
function
(
metadata
,
options
)
{
return
getSiteDocument
(
this
.
_url
).
then
(
function
(
site_hal
)
{
return
jIO
.
util
.
ajax
({
...
...
@@ -332,7 +332,7 @@
});
};
ERP5Storage
.
onView
.
default
.
allDocs
=
function
(
param
,
options
)
{
ERP5Storage
.
onView
[
"
default
"
]
.
allDocs
=
function
(
param
,
options
)
{
if
(
typeof
options
.
query
!==
"
string
"
)
{
options
.
query
=
(
options
.
query
?
jIO
.
Query
.
objectToSearchText
(
options
.
query
)
:
...
...
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