Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
dad8e60c
Commit
dad8e60c
authored
Nov 18, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_js_style: fail if browser can not parse the HTML
parent
24b7ac9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/jsstyle.js.js
...plateItem/portal_skins/erp5_web_js_style_ui/jsstyle.js.js
+4
-4
No files found.
bt5/erp5_web_js_style/SkinTemplateItem/portal_skins/erp5_web_js_style_ui/jsstyle.js.js
View file @
dad8e60c
/*globals window, document, RSVP, rJS, XMLHttpRequest,
DOMParser,
URL,
/*globals window, document, RSVP, rJS, XMLHttpRequest, URL,
history, console */
/*jslint indent: 2, maxlen: 80*/
(
function
(
window
,
document
,
RSVP
,
rJS
,
XMLHttpRequest
,
DOMParser
,
URL
,
(
function
(
window
,
document
,
RSVP
,
rJS
,
XMLHttpRequest
,
URL
,
loopEventListener
,
history
,
console
)
{
"
use strict
"
;
...
...
@@ -295,7 +295,7 @@
style_gadget
:
gadget
.
getDeclaredGadget
(
'
renderer
'
)
}))
.
push
(
function
(
result_dict
)
{
var
dom_parser
=
(
new
DOMParser
()).
parseFromString
(
var
dom_parser
=
rJS
.
parseDocumentStringOrFail
(
result_dict
.
xhr
.
responseText
,
'
text/html
'
),
...
...
@@ -472,5 +472,5 @@
// with browsers without javascript
hidePage
();
}(
window
,
document
,
RSVP
,
rJS
,
XMLHttpRequest
,
DOMParser
,
URL
,
}(
window
,
document
,
RSVP
,
rJS
,
XMLHttpRequest
,
URL
,
rJS
.
loopEventListener
,
history
,
console
));
\ No newline at end of file
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