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
Klaus Wölfel
erp5
Commits
9be5172d
Commit
9be5172d
authored
Nov 22, 2019
by
Xiaowu Zhang
Committed by
Klaus Wölfel
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_production_planning: fix copy issue from windows
parent
98bb3ddd
Changes
1
Hide 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 @
9be5172d
...
@@ -132,7 +132,16 @@ function listenToInputPaste(matrixbox_container) {
...
@@ -132,7 +132,16 @@ function listenToInputPaste(matrixbox_container) {
e
.
stopPropagation
();
e
.
stopPropagation
();
e
.
preventDefault
();
e
.
preventDefault
();
pasted_value
=
pasted_value
.
split
(
'
\n
'
);
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
)
{
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
+/
);
value_list
=
pasted_value
[
i
].
split
(
/
\s
+/
);
tr
=
matrixbox
.
find
(
'
tr:eq(
'
+
(
tr_index
+
i
)
+
'
)
'
);
tr
=
matrixbox
.
find
(
'
tr:eq(
'
+
(
tr_index
+
i
)
+
'
)
'
);
for
(
j
=
0
;
j
<
value_list
.
length
;
j
+=
1
)
{
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