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
2
Merge Requests
2
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
cooperatic-foodcoops
third-party
Commits
23c02513
Commit
23c02513
authored
Jul 23, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix console error after adding a supplier
parent
307d0490
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
orders_helper.js
orders/static/js/orders_helper.js
+4
-2
No files found.
orders/static/js/orders_helper.js
View file @
23c02513
...
@@ -1260,8 +1260,11 @@ function display_products(params) {
...
@@ -1260,8 +1260,11 @@ function display_products(params) {
return
-
1
;
return
-
1
;
}
}
//
Empty datatable if it already exis
ts
//
If datatable already exists, empty & clear even
ts
if
(
products_table
)
{
if
(
products_table
)
{
$
(
products_table
.
table
().
header
()).
off
()
$
(
'#products_table'
).
off
();
products_table
.
clear
().
destroy
();
products_table
.
clear
().
destroy
();
$
(
'#products_table'
).
empty
();
$
(
'#products_table'
).
empty
();
}
}
...
@@ -1340,7 +1343,6 @@ function display_products(params) {
...
@@ -1340,7 +1343,6 @@ function display_products(params) {
const
product
=
products
.
find
(
p
=>
p
.
id
==
prod_id
);
const
product
=
products
.
find
(
p
=>
p
.
id
==
prod_id
);
const
new_row_data
=
prepare_datatable_data
([
product
.
id
])[
0
];
const
new_row_data
=
prepare_datatable_data
([
product
.
id
])[
0
];
// TODO erreur console après ajout d'un fournisseur
products_table
.
row
(
$
(
this
).
closest
(
'tr'
)).
data
(
new_row_data
)
products_table
.
row
(
$
(
this
).
closest
(
'tr'
)).
data
(
new_row_data
)
.
draw
();
.
draw
();
...
...
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