Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
scripta
eScriptorium
Commits
84417828
Commit
84417828
authored
Oct 05, 2020
by
Robin Tissot
Browse files
Fixes a JS error that may or may not fix weird behavior in text panel.
parent
0e495ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/apps/core/static/js/edit/components/diplo_line.js
View file @
84417828
...
...
@@ -26,7 +26,7 @@ var diploLine = LineBase.extend({
}
},
watch
:
{
'
line.order
'
:
function
(
n
,
o
)
{
'
line.order
'
:
function
(
n
,
o
)
{
// make sure it's at the right place,
// in case it was just created or the ordering got recalculated
let
index
=
Array
.
from
(
this
.
$el
.
parentNode
.
children
).
indexOf
(
this
.
$el
);
...
...
@@ -49,7 +49,7 @@ var diploLine = LineBase.extend({
},
setElContent
(
content
)
{
let
line
=
this
.
getEl
();
line
.
textContent
=
content
;
if
(
line
)
line
.
textContent
=
content
;
},
getRegion
()
{
return
this
.
$parent
.
part
.
regions
.
findIndex
(
r
=>
r
.
pk
==
this
.
line
.
region
);
...
...
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