Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexis AOUN
third-party
Commits
55039046
Commit
55039046
authored
3 years ago
by
Renaud Dufour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add listener to allow linebreak in textarea.
parent
6806e366
dev_principale
…
Reception_poids
dev_cooperatic
fix_remove-qty-edition
20210603
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
reception_produits.js
reception/static/js/reception_produits.js
+10
-0
No files found.
reception/static/js/reception_produits.js
View file @
55039046
...
...
@@ -1336,6 +1336,16 @@ function openFAQ() {
function
openErrorReport
()
{
openModal
(
$
(
'#templates #modal_error_report'
).
html
(),
saveErrorReport
,
'Confirmer'
);
// listener for error report textarea
// this is necessary because default behavior is overwritten by the listener defined in jquery.pos.js;
$
(
"#error_report"
).
keypress
(
function
(
e
)
{
var
key
=
e
.
keyCode
;
console
.
log
(
this
)
if
(
key
===
13
)
{
this
.
value
+=
"
\
n"
;
}
});
var
textarea
=
document
.
getElementById
(
"error_report"
);
textarea
.
value
=
user_comments
;
...
...
This diff is collapsed.
Click to expand it.
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