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
b9233766
Commit
b9233766
authored
Mar 12, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5storage.js answer formating modified
parent
e97c2824
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/jio.storage/erp5storage.js
src/jio.storage/erp5storage.js
+5
-6
No files found.
src/jio.storage/erp5storage.js
View file @
b9233766
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
// XXX docstring
// XXX docstring
function
formatGetSuccessAnswer
(
answer
)
{
function
formatGetSuccessAnswer
(
answer
)
{
if
(
!
answer
)
{
return
answer
;
}
if
(
answer
===
undefined
||
answer
===
null
)
{
throw
answer
;
}
var
result
;
var
result
;
if
(
typeof
answer
.
data
===
"
object
"
&&
answer
.
data
)
{
if
(
typeof
answer
.
data
===
"
object
"
&&
answer
.
data
)
{
return
answer
;
return
answer
;
...
@@ -79,11 +79,10 @@
...
@@ -79,11 +79,10 @@
// XXX docstring
// XXX docstring
function
formatUpdateSuccessAnswer
(
answer
)
{
function
formatUpdateSuccessAnswer
(
answer
)
{
if
(
!
answer
)
{
return
;
}
if
(
answer
===
undefined
||
answer
===
null
)
{
throw
answer
;
}
var
result
;
var
result
;
if
(
answer
.
target
&&
if
(
typeof
answer
.
target
===
"
object
"
&&
answer
.
target
!==
null
&&
typeof
answer
.
target
.
status
===
"
number
"
&&
typeof
answer
.
target
.
status
===
"
number
"
)
{
typeof
answer
.
target
.
statusText
===
"
string
"
)
{
result
=
{
result
=
{
"
status
"
:
answer
.
target
.
status
"
status
"
:
answer
.
target
.
status
};
};
...
@@ -94,7 +93,7 @@
...
@@ -94,7 +93,7 @@
// XXX docstring
// XXX docstring
function
formatErrorAnswer
(
answer
)
{
function
formatErrorAnswer
(
answer
)
{
if
(
!
answer
)
{
return
;
}
if
(
answer
===
undefined
||
answer
===
null
)
{
throw
answer
;
}
var
result
,
dom
;
var
result
,
dom
;
if
(
answer
.
target
&&
if
(
answer
.
target
&&
typeof
answer
.
target
.
status
===
"
number
"
&&
typeof
answer
.
target
.
status
===
"
number
"
&&
...
...
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