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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
a09af549
Commit
a09af549
authored
Jan 20, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: jslint on gadget editor
parent
5e2cf409
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/gadget_editor.js.js
...inTemplateItem/portal_skins/erp5_core/gadget_editor.js.js
+11
-11
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/gadget_editor.js.js
View file @
a09af549
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
function
readBlobAsDataURL
(
blob
)
{
function
readBlobAsDataURL
(
blob
)
{
var
fr
=
new
FileReader
();
var
fr
=
new
FileReader
();
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
,
notify
)
{
return
new
RSVP
.
Promise
(
function
(
resolve
,
reject
)
{
fr
.
addEventListener
(
"
load
"
,
resolve
);
fr
.
addEventListener
(
"
load
"
,
resolve
);
fr
.
addEventListener
(
"
error
"
,
reject
);
fr
.
addEventListener
(
"
error
"
,
reject
);
fr
.
readAsDataURL
(
blob
);
fr
.
readAsDataURL
(
blob
);
...
@@ -70,7 +70,6 @@
...
@@ -70,7 +70,6 @@
.
onStateChange
(
function
(
modification_dict
)
{
.
onStateChange
(
function
(
modification_dict
)
{
var
element
=
this
.
element
,
var
element
=
this
.
element
,
gadget
=
this
,
gadget
=
this
,
url
,
div
=
document
.
createElement
(
'
div
'
),
div
=
document
.
createElement
(
'
div
'
),
div_max
=
document
.
createElement
(
'
div
'
),
div_max
=
document
.
createElement
(
'
div
'
),
queue
=
new
RSVP
.
Queue
();
queue
=
new
RSVP
.
Queue
();
...
@@ -118,14 +117,14 @@
...
@@ -118,14 +117,14 @@
(
gadget
.
state
.
editor
===
'
pdf
'
))
{
(
gadget
.
state
.
editor
===
'
pdf
'
))
{
queue
queue
.
push
(
function
()
{
.
push
(
function
()
{
var
url
=
editor_dict
[
gadget
.
state
.
editor
].
url
;
var
gadget_
url
=
editor_dict
[
gadget
.
state
.
editor
].
url
;
if
(
gadget
.
state
.
editor
===
'
jsmd_editor
'
&&
if
(
gadget
.
state
.
editor
===
'
jsmd_editor
'
&&
!
gadget
.
state
.
run
&&
!
gadget
.
state
.
run
&&
gadget
.
state
.
editable
)
{
gadget
.
state
.
editable
)
{
url
=
editor_dict
.
codemirror
.
url
;
gadget_
url
=
editor_dict
.
codemirror
.
url
;
}
}
return
gadget
.
declareGadget
(
return
gadget
.
declareGadget
(
url
,
gadget_
url
,
{
{
scope
:
'
editor
'
,
scope
:
'
editor
'
,
sandbox
:
'
iframe
'
,
sandbox
:
'
iframe
'
,
...
@@ -207,7 +206,8 @@
...
@@ -207,7 +206,8 @@
return result;
return result;
});
});
*/
*/
}
else
if
(
this
.
state
.
editable
&&
}
if
(
this
.
state
.
editable
&&
(
this
.
state
.
editor
===
'
text_area
'
))
{
(
this
.
state
.
editor
===
'
text_area
'
))
{
result
=
{};
result
=
{};
result
[
this
.
state
.
key
]
=
this
.
element
.
querySelector
(
'
textarea
'
).
value
;
result
[
this
.
state
.
key
]
=
this
.
element
.
querySelector
(
'
textarea
'
).
value
;
...
...
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