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
Douglas
jio
Commits
fa4735f3
Commit
fa4735f3
authored
Mar 18, 2014
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error responseText parse improved
parent
ff853ddf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/jio.storage/erp5storage.js
src/jio.storage/erp5storage.js
+4
-5
No files found.
src/jio.storage/erp5storage.js
View file @
fa4735f3
...
@@ -111,12 +111,11 @@
...
@@ -111,12 +111,11 @@
}
}
}
else
if
(
typeof
answer
.
target
.
responseText
===
"
string
"
)
{
}
else
if
(
typeof
answer
.
target
.
responseText
===
"
string
"
)
{
dom
=
new
DOMParser
().
parseFromString
(
dom
=
new
DOMParser
().
parseFromString
(
"
<stubelementjusttocreateafirstelementchildattributetodom>
"
+
answer
.
target
.
responseText
,
answer
.
target
.
responseText
+
"
text/html
"
"
</stubelementjusttocreateafirstelementchildattributetodom>
"
,
"
text/xml
"
);
);
result
.
message
=
dom
.
firstElementChild
.
textContent
;
result
.
message
=
(
dom
.
querySelector
(
'
#master
'
)
||
dom
.
firstElementChild
).
textContent
;
if
(
!
result
.
message
)
{
delete
result
.
message
;
}
if
(
!
result
.
message
)
{
delete
result
.
message
;
}
}
}
throw
result
;
throw
result
;
...
...
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