mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 21:45:41 +00:00
modal criar produto usado para editar produto tambem
This commit is contained in:
@@ -21,9 +21,10 @@ function editProduct(id) {
|
||||
preco = preco.replace('R$ ', '');
|
||||
preco = preco.replace(',', '.');
|
||||
productPrice.value = preco;
|
||||
// productDescription.value = document.getElementById('description-'+id).innerHTML;
|
||||
productDescription.value = document.getElementById('description-'+id).value;
|
||||
productqtd.value = document.getElementById('quantity-'+id).innerHTML;
|
||||
categorie.value = 2;
|
||||
console.log(document.getElementById('h-category-'+id).value)
|
||||
categorie.value = document.getElementById('h-category-'+id).value;
|
||||
|
||||
// const url = `/products/editProduct/${id}/`;
|
||||
// // window.location.href = url;
|
||||
|
||||
Reference in New Issue
Block a user