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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
cf35942c
Commit
cf35942c
authored
Nov 22, 2019
by
Xiaowu Zhang
Committed by
Cédric Le Ninivin
Feb 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_production_planning: fix copy issue from windows
parent
d649a0eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
bt5/erp5_production_planning/SkinTemplateItem/portal_skins/erp5_production_planning/production_planning.js.js
..._skins/erp5_production_planning/production_planning.js.js
+9
-0
No files found.
bt5/erp5_production_planning/SkinTemplateItem/portal_skins/erp5_production_planning/production_planning.js.js
View file @
cf35942c
...
...
@@ -132,7 +132,16 @@ function listenToInputPaste(matrixbox_container) {
e
.
stopPropagation
();
e
.
preventDefault
();
pasted_value
=
pasted_value
.
split
(
'
\n
'
);
//libre office add "" at last line
if
(
pasted_value
[
pasted_value
.
length
-
1
]
==
''
)
{
pasted_value
=
pasted_value
.
slice
(
0
,
-
1
);
}
for
(
i
=
0
;
i
<
pasted_value
.
length
;
i
+=
1
)
{
length
=
pasted_value
[
i
].
length
;
//in windows, '\r' is added in the end of each line, remove it
if
(
pasted_value
[
i
][
pasted_value
[
i
].
length
-
1
]
==
'
\r
'
)
{
pasted_value
[
i
]
=
pasted_value
[
i
].
slice
(
0
,
-
1
);
}
value_list
=
pasted_value
[
i
].
split
(
/
\s
+/
);
tr
=
matrixbox
.
find
(
'
tr:eq(
'
+
(
tr_index
+
i
)
+
'
)
'
);
for
(
j
=
0
;
j
<
value_list
.
length
;
j
+=
1
)
{
...
...
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