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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
ab65ade6
Commit
ab65ade6
authored
Nov 18, 2022
by
Romain Courteaud
🐸
Committed by
Kazuhiko Shiozaki
Jul 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_js_style: fail if browser can not parse the HTML
parent
3b60406f
Changes
1
Show 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 @
ab65ade6
/*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